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!

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 trial

JavaScript Introducing the Project

John Nguyen
.a{fill-rule:evenodd;}techdegree seal-36
John Nguyen
Full Stack JavaScript Techdegree Graduate 30,501 Points

In 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, '');

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!

Hi there, I changed the code for the port but I am still having error with npm start.

PS C:\Users\marni\project-files\1- Introducing the Project> npm start
npm ERR! Missing script: "start"
npm ERR! 
npm ERR! Did you mean one of these?
npm ERR!     npm star # Mark your favorite packages
npm ERR!     npm stars # View packages marked as favorites
npm ERR! 
npm ERR! To see a list of scripts, run:
npm ERR!   npm run

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\marni\AppData\Local\npm-cache\_logs\2022-04-29T09_37_41_176Z-debug-0.log
PS C:\Users\marni\project-files\1- Introducing the Project> 

1 Answer

Aaron Thomas
Aaron Thomas
Full Stack JavaScript Techdegree Student 13,189 Points

The 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