What is Node.js?
What is NPM?
Node.js Installation on Windows
Installing Node.js on Windows is very easy, You will really love it after successfully installation. Follow the installation process carefully and at the end you will have your own Node enabled window system.
Go to the Node installation page, and download the window installer for your platform ( eg. 64 bit or 32 bit ). After downloading the installer click on the executable file.
You will be asked to accept the license agreement and then you’ll have to click the “Next” button multiple times when
After the successful installation, You can test the version of Node installed, also check that node is proper working on your system. To check the version open command prompt and simply type given command below:
- To check Node version type node -v or node –version
- To check NPM version type npm -v or npm –version
How to Update Node & NPM
To install the updates of Node and NPM on windows system just download the installer from the Node.js Installer page and run it again like you do when installing. The new updated version of Node and NPM will replace the older versions.
Install Node.js on Linux (Ubuntu)
Node.js package is available in two releases LTS & Current, It
Here we are going to install Node.js & NPM on Ubuntu with PPA, So let’s add Node.js PPA on our system:-
sudo apt-get install curl python-software-properties curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
After running above command you have successfully added Node.js PPA on your ubuntu system, Now we are ready to install Node using apt-get method.
Run the below command on your
sudo apt-get install nodejs
It will also install NPM with Node.js. It installs many dependent packages on the system to create
After successfully installation lets test the version of Node & NPM and to achieve this type the command given below on your Ubuntu terminal:
- Check Node.js version – node -v or node –version
- Check NPM version – npm -v or npm –version
and finally we have Node enabled Ubuntu system is here: