DEV Community


Discussion on: Auto-Deploy a Node.js Server: Heroku + GitHub

ryhenness profile image
Ryan Author

Heroku uses the package.json file to npm install the packages itself. Make sure that you have the dependencies section:

"dependencies": {
"express": "^4.16.3"

note: be sure this dependencies section includes any packages you are using, or else they will not be installed.