install express by npm code example Example 1: install express npm i express Example 2: express install $ npx express-generator