How to Install Express.js?

To install express.js using npm, run the following command.

npm install express

To install it globally, run the above command with -g option. g for global.

npm install -g express