My Heroku app builds successfully, but it brings me to an application error page. I checked my Heroku logs and it gives me this error:
Failed at the aether-news@0.0.0 start script 'node ./bin/www'.
2017-06-05T20:34:24.373133+00:00 app[web.1]: npm ERR!
2017-06-05T20:34:24.373473+00:00 app[web.1]: npm ERR! If you do, this is most likely a problem with the aether-news package,
2017-06-05T20:34:24.373384+00:00 app[web.1]: npm ERR! Make sure you have the latest version of node.js and npm installed.
2017-06-05T20:34:24.373559+00:00 app[web.1]: npm ERR! not with npm itself.
2017-06-05T20:34:24.373915+00:00 app[web.1]: npm ERR! Tell the author that this fails on your system:
2017-06-05T20:34:24.374048+00:00 app[web.1]: npm ERR! node ./bin/www
Originally, the app wouldn't build because my package.json for my node server was not in the root file. I moved it there and it built successfully. If I try running the app on localhost, however, it won't run until the package.json is nested back in my server folder where I originally had it. I am not sure if this is relevant to the current problem, so I thought I'd add some context...
I am currently running npm 4.0.5. My node version is 7.4.0.
Is this really happening because node or npm might be out of date? They are both recent versions, so it's hard to believe this is the problem...
via universesurfer
No comments:
Post a Comment