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 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 :)