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.

JavaScript Middleware Basics

I cannot use localhost:3000

I downloaded the project files and extracted all. I downloaded npm and nodemon and I did all the tests and they are installed. I created the hello.js and tested it in powershell and it worked and confirmed node was installed. I also downloaded WAMP. I restarted my computer and now I still cannot access localhost:3000......

whenever I go to the terminal in VS in the files I downloaded and type nodemon it does not "start" anything it says :

C:\Users\bri15_000\Downloads\javascript_understanding_express_middleware>nodemon Usage: nodemon [nodemon options] [script.js] [args]

See "nodemon --help" for more.

... I tried typing nodemon in command prompt and power shell as well...

please help

1 Answer

Inside Terminal or CMD

  • cd to the location where you have package.json file located
  • then type npm install
  • and then just type npm start and later post the result of error if any

Thank you so much for your help :)