MadFluffyScience
MadFluffyScience

Reputation: 13

Express.js App no Response on localhost:3000

I created an express.js app by typing the following the commands in (OSX):

$ express mytestapp<br>
$ cd mytestapp<br>
$ npm install

Then when I type code below

$ node app.js

and I navigate to http://localhost:3000 I get this webpage is not available.

Upvotes: 0

Views: 1114

Answers (1)

Joachim Isaksson
Joachim Isaksson

Reputation: 180887

An express4 app that's generated using the generator is no longer started using node app.js but instead using;

npm start

The relevant section of the docs.

Upvotes: 3

Related Questions