npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-express@1.0.0 start:
node server
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-express@1.0.0 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in: npm ERR! /Users/teevee/.npm/_logs/2020-05-30T18_42_30_526Z-debug.log
I haven't had any issues until I had to add routes for partners and promotions in my project. I don't know how to debug this type of error in order to make the needed changes. What can possibly be the issue? I'm still learning. Here is a link: https://github.com/TanishaV842/node-express/tree/master/routes
package-lock.json
andnode_modules
? – SMAKSSroutes/<type>Router.js
, the .route(/<path>
) code is also duplicated in your main server.js code. Do you need both route definitions? it seems like one or the other would suffice. – mfinknpm ERR!
log for the stacktrace, that may lead you to the line in your source code that produced the error, and in many cases, tell you why the error was thrown. – mfink