install express as a dependency + npm code example
Example 1: install express globally
$ npm install express --no-save
Example 2: express install
$ npx express-generator
$ npm install express --no-save
$ npx express-generator