Question

The problem was with git add.I had forgotten to add the node_modules files.I closed the terminal and ran the set of commands given in the Getting started with Heroku and NodeJs[1] again.The application was successfully pushed onto the stack.

Was it helpful?

Solution

Heroku will automatically detect a nodejs application if you include a package.json file in the root of your project. Ensure that package.json is added to your git project before pushing your project to Heroku.

Your nodejs application should be managed with NPM. For a complete working example see the Nodejs guide on Heroku:

https://devcenter.heroku.com/articles/nodejs

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top