Node.js Installation

Let’s learn how to set up a Node.js environment on our local machine.

We can use the following guide to learn how to set up a local environment for Node.js on our machine.

Node.js and Express environment

  1. Download the Node.js installer from the official website.

  2. Run the installer and follow its steps.

  3. Restart the machine and open a terminal.

Note: We can verify that Node.js is installed using the node -v command and use the npm -v command to verify that the npm package is installed.

  1. Run the following command to install Express:
    npm install --save express
    
    After a few seconds, Express is installed. We should see the following if we open the package.json file:

Get hands-on with 1400+ tech skills courses.