Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Development Tools

Every time I restart VSC, when I type in '$ npm start' into the bash terminal, I get an ELIFECYCLE error. how to fix?

in order to make React run in my browser I have to run:

$ npm cache clean --force

$ rm -rf node_modules package-lock.json

$ npm install

$ npm start

This fixes it for that session, but when I close and reopen VSC, I have the same ELIFECYCLE issue again, and need to do the above fixes again. Is there something wrong with my VSC setup that is causing this? I can't imagine this is normal?!

1 Answer

I think this was because I was not hitting ctr C to cancel the local browser when finished for the day. When I do that, no issues... Problem solved.