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

JavaScript Angular Basics Angular Basic Forms Adding NgForm Module

I have downloaded the code and tried running stage_4_video_1_Start and getting "npm ERR! missing script: start".

In Angular Basics Course, have downloaded the code and tried running stage_4_video_1_Start and getting "npm ERR! missing script: start".

2 Answers

Ari Misha
Ari Misha
19,323 Points

Hiya there! First cd into the directory and run npm install and when its done , run it again. And if its still throwing errors, post your package.json file. I hope it helped!

~ Ari

Neil McPartlin
Neil McPartlin
14,662 Points

5 months on but in case anyone else hits this, I'm guessing that Sarah successfully performed the install but then typed npm start which is indeed a common way of starting apps.

However, for this particular app, there is no 'start' script defined in the package.json file, but there is one called 'serve', so instead, one needs to type...

npm run serve