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 trialJohn Nguyen
Full Stack JavaScript Techdegree Graduate 30,501 PointsIn case anyone is having issues running the server w/ npm start..
Within bin/www, I needed to change the code on line 29 to specify an IP address.
server.listen(port, '0.0.0.0');
After I did this, I was able to view the project at localhost:3000. I'm actually not entirely sure why this happens but I ran into this issue before on another express project. I hope it helps someone in the future!
1 Answer
Aaron Thomas
Full Stack JavaScript Techdegree Student 13,189 PointsThe issue is you are not running it from the correct folder. I had the same issue
from the top folder, type :
cd 1-Introducing-the-Project/using-sequelize-orm-with-express/
npm install
npm start
Marni Ali
4,642 PointsMarni Ali
4,642 PointsHi there, I changed the code for the port but I am still having error with npm start.