Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NodeJs: Express app don't start in windows

I'm just starting with node.js and express framework, following this tutorial:

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

After running in console express myapp and cd myapp && npm install when I run node app.js nothing happens. The command returns immediately, while I was expecting it to wait for incoming messages. No error are shown either. I'm on Windows 7 x64 and the commands are run from an ADMIN console. Any help will be appreciated.

like image 340
Oscar Avatar asked Oct 15 '14 10:10

Oscar


1 Answers

The tutorial says to run

set DEBUG=myapp & node ./bin/www

You don't run it with

node app.js

in express v4.x

like image 171
Max Avatar answered Sep 22 '22 15:09

Max