install npm express cli code example Example 1: install express npm i express Example 2: generate express app $ npx express-generator