Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialKilleon Patterson
18,528 PointsNode.js Npm Express Application
I downloaded Node.js and Express generator to my machine. I'm building the project with PHPstorm. I'm at the 'Welcome to Express' page on @ localhost:3000. I made a change in the file to edit the welcome message for testing and the update won't show on the local host page.
In my console, I receive these errors after attempting to start the app.
npm ERR! Windows_NT
npm ERR! argv "C:\\program Files\\nodejs\\node.exe" " "C:\\node_modeuls\\npm\\bin\\npm-cli.js" "start"
npm ERR! node v6.10.3
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! shopping-cart@0.0.0 start: 'node ./bin/www'
npm ERR! Exit status 1
npm ERR!
npm ERR! failed at the shopping-cart@0.0.0 start script 'node ./bin/www'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the shopping-cart package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./bin/www
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs shopping-cart
I don't believe that it is an issue with the author. Here is the link to my GitHub gist https://gist.github.com/Satellite9/2cf79dfb621bd36fe4ca2a2138381179
2 Answers
Andrew Chalkley
Treehouse Guest TeacherWhen you run the npm start
command you can pass the --trace
flag. Trace will show you the full stack trace on where the issue is happening. So you'd run npm start --trace
. You'll see that the users.js
can't be found. You have a user.js
file. Rename the file and your app should start.
Regards,
Andrew
Andrew Chalkley
Treehouse Guest TeacherWithout seeing the rest of the code it's hard to say what's up. Can you share your code on GitHub?
Killeon Patterson
18,528 PointsHi,
sure thing. Here is the link. https://gist.github.com/Satellite9/2cf79dfb621bd36fe4ca2a2138381179. Thank you for your reply.
Killeon Patterson
18,528 PointsThank you for your help.
Killeon