I'm trying to test a fork of a node module on my Heroku app. Here's what I did:
- Forked a node module repo and made some changes to the code. Pushed to my own remote repo.
- Ran the following on my Heroku bash terminal:
npm install git+https://git@github.com/Nsrose/node_model_updated.git
- Ran heroku restart.
This actually updated the file I edited under node_modules/ folder. However, the error that was fixed with this file change is not changing. Before the npm install, the app said this error:
ERROR TypeError: Cannot read property 'channel' of undefined (line 97)
After the series of commands above, even though the file is updated on the heroku server under node_modules/, the error persists. In fact, the file I changed now doesn't even have anything related to 'channel' on line 97.
Why is my heroku app still using the old node_module/ and how do I force it to update?