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.

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top