install application generator globally code example Example 1: generate express app $ npx express-generator Example 2: express-generator $ npm install