Running a Node.js App Locally Using Heroku web.1 | module.js:329 Error

If you are getting an error similar to the one above when trying to run a Node.js app locally with Heroku, the guide here gives the exact commands you should run to get it working. My problem was that I installed all the dependencies globally instead of locally.