NodeJs: Express application does not start in windows

I am just starting with node.js and expressing the framework following this guide:

http://expressjs.com/starter/generator.html

After running express myapp and cd myapp && npm install in the node app.js nothing happens when node app.js starts. The command returns immediately, while I expected it to wait for incoming messages. Errors are not displayed. I am on Windows 7 x64 and the commands run from the ADMIN console. Any help would be appreciated.

+7
express
source share
4 answers

The tutorial says that to run

 set DEBUG=myapp & node ./bin/www 

You do not run it with

 node app.js 

in expression v4.x

+5
source share

after you cd myapp && & & npm installation try

 npm start 
+3
source share

Try executing commands from the command line 'Node.js' or 'C: \ Program Files \ Nodejs'.

If he says that "node" is not recognized as an internal or external command

Try adding C: \ Program Files \ Nodejs to your PATH environment variable.

At the command prompt, the command will be set to PATH =% PATH%; C: \ Program Files \ Nodejs.

0
source share

Before doing

 express myapp 

you need to execute

 npm install express-generator -g 
0
source share

All Articles