{"id":766,"hash":"b8655e0218f935d6898035afbfd4295005a548594ce2be8a072aa599ce9b2246","pattern":"Why do I obtain this error when deploying app to Heroku?","full_message":"I am getting some kind of error when deploying my app to heroku using git hub. The problem is, I don't understand the heroku logs and the entailing errors. Here is the heroku log: \n\nMarcuss-MacBook-Pro:Weather-App marcushurney$ heroku logs\n2016-01-05T14:37:27.798077+00:00 app[web.1]: npm ERR! Please include the following file with any support request:\n2016-01-05T14:37:27.798377+00:00 app[web.1]: npm ERR!     /app/npm-debug.log\n2016-01-05T14:37:27.786949+00:00 app[web.1]: npm ERR! node v5.1.1\n2016-01-05T14:37:27.786556+00:00 app[web.1]: npm ERR! argv \"/app/.heroku/node/bin/node\" \"/app/.heroku/node/bin/npm\" \"start\"\n2016-01-05T14:37:27.787856+00:00 app[web.1]: npm ERR! npm  v3.3.12\n2016-01-05T14:37:28.776245+00:00 heroku[web.1]: Process exited with status 1\n2016-01-05T14:37:28.789412+00:00 heroku[web.1]: State changed from starting to crashed\n2016-01-05T17:27:16.684869+00:00 heroku[web.1]: State changed from crashed to starting\n2016-01-05T17:27:17.853743+00:00 heroku[web.1]: Starting process with command `npm start`\n2016-01-05T17:27:20.423495+00:00 app[web.1]: npm ERR! node v5.1.1\n2016-01-05T17:27:20.423130+00:00 app[web.1]: npm ERR! argv \"/app/.heroku/node/bin/node\" \"/app/.heroku/node/bin/npm\" \"start\"\n2016-01-05T17:27:20.424111+00:00 app[web.1]: npm ERR! npm  v3.3.12\n2016-01-05T17:27:20.425937+00:00 app[web.1]: npm ERR! missing script: start\n2016-01-05T17:27:20.422441+00:00 app[web.1]: npm ERR! Linux 3.13.0-71-generic\n2016-01-05T17:27:20.426242+00:00 app[web.1]: npm ERR! \n2016-01-05T17:27:20.426432+00:00 app[web.1]: npm ERR! If you need help, you may report this error at:\n2016-01-05T17:27:20.426634+00:00 app[web.1]: npm ERR!     <https://github.com/npm/npm/issues>","ecosystem":"npm","package_name":"git","package_version":null,"solution":"You have to inform heroku where to start : missing script: start. In your package.json, you should have something like this:\n\n\"scripts\": {\n  \"start\": \"node index.js\"\n}\n\nWhere index.js is your entry point.\n\nAs an alternative, you can specify in Procfile:\n\nweb: node index.js\n\nHow to use both\nIf you still want to use the start script from within the Procfile:\n\nweb: npm start\n\nIn this case, you can still feature your start script from\nthe package.json file as it is the usual way to proceed and it will be taken into account by Heroku.","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/34631300/why-do-i-obtain-this-error-when-deploying-app-to-heroku","votes":31,"created_at":"2026-04-19T04:51:39.466302+00:00","updated_at":"2026-04-19T04:51:39.466302+00:00"}