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 trial

Learning Resources Introducing the Practice

Nick Huemmer
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Nick Huemmer
Front End Web Development Techdegree Graduate 26,840 Points

Why do we use `npm start` instead of `node` or `nodemon` to start the server?

This is a bit different that how we've been shown in earlier Treehouse material to start the server. What's going on with that command?

2 Answers

Kyrill Gobber
seal-mask
.a{fill-rule:evenodd;}techdegree
Kyrill Gobber
Full Stack JavaScript Techdegree Student 10,357 Points

I think it doesn't really matter how you run the project. I still use nodemon, and it works fine. You could also use your IDEs run function or whatever you like I guess.

I don't think the practice is specific to this one course so some people might not have nodemon installed. You can always edit your package.json start script to '"start": "nodemon ./bin/www"' if you want to use nodemon.