1. Open the terminal.
2. Type npm “init -y” and press Enter. This command initializes a new file called package.json. This file keeps track of the dependencies your project uses.
3. Next, install a dependency called express. Type “npm install express” in the terminal and press Enter. npm will download and install express. After the installation, you'll notice a new folder called “node_modules” in your project directory. This folder contains all the dependencies required by your application.