How to install node js
What is node.js?
Node js installation steps for Windows
Download the product’s windows installer from https://nodejs.org/en/download/
Windows will give you an option to Run the installer file (.msi)
The next screen will be license agreement, tick the check-box and click on next.
By default, Windows will choose Program Files to install the software. You can retain the same or prefer a custom location.
Next step is to select the features to be installed. The default setting is just elegant, and you can go ahead on this step. You can check your disk usage and free up the required space if needed.
Click on install!
You can check the status and can cancel the installation if you have to.
Before installation, Windows will ask you permission to install the software, click on YES.
9. The installation will take a few more minutes.
Click on the Finish button once the installation process is done.
To check if the installation is proper, you can open command prompt using cmd and type basic commands.
console.log('Node.js, is successfully installed');
From a command prompt, execute the command node testnode.js to see the output printed on the console. If it is rightly written, you can be happy – the installation is successful! Check out Best Interview Questions on our website, to know more about the features, commands, and benefits of using node.js
- There is no need for a computer restart for node.js to work; however if your command prompt is already open, you will need to close and reopen it for the updated PATH to be loaded.
- By default, the installer sets the environment variables (PATH). If you experience an error, check if the PATH is set correctly.
- Installing node.js on Linux and Mac is also simple as in Windows but needs some dependencies like Ruby, GCC or Homebrew package manager for Linux and Mac.