Node.js Installation
Let’s learn how to set up a Node.js environment on our local machine.
We'll cover the following
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
-
Download the Node.js installer from the official website.
-
Run the installer and follow its steps.
-
Restart the machine and open a terminal.
Note: We can verify that Node.js is installed using the
node -v
command and use thenpm -v
command to verify that the npm package is installed.
- Run the following command to install Express:
After a few seconds, Express is installed. We should see the following if we open thenpm install --save express
package.json
file:
Get hands-on with 1400+ tech skills courses.