Step 1: install
$ npm install -g express-generator
Step 2: start the project
$ mkdir mydir
$ cd mydir
$ express
$ express --view=pug myapp (or, this will set view to pug)
$ npm install // install dependencies
$ DEBUG=myapp:* npm start // start the server
Step 3: check the server, localhost:3000