Create a project using Express
Installing it is as simple as executing the commands below:
$ sudo npm -g install express-generator
Create a skeleton project by executing these commands. This will produce a new application in the projects/sample-application directory:
$ mkdir -p projects $ cd projects $ express --view pug sample
Install dependencies using npm:
$ cd sample $ npm install
This will download and install the required dependencies into a node_modules directory under your project folder.