I keep getting “Application Error” when I run my Heroku app for the timestamp service.
The only thing that keeps popping up in the Heorku log is “NPM_CONFIG_LOGLEVEL=error” (entire latest log is appended to the bottom of this missive)
At first I thought Heroku was choking on the port, so I fixed that and still got the error.
After continued reading, I have come to think there is something not quite right with the json package. But after several updates, I am still getting the same darn error.
Thank you for your reply, but I am confused. Those are both already in the code. If they are also supposed to be in the json package, what you have shown me is not json format.
When you upload your project to Heroku, it goes through package.json file and install all necessary dependencies listed in that file. Your package.json doesn’t have any.
What I showed you is the part of your code where you require external dependencies, not included in node.js. You must include them as dependencies in package.json.
How did you get express and moment on your computer?
I did not put them on my actual computer, if I am understanding how c9 works. Rather, from the c9 terminal I did $npm install express and $ npm install moment