What is Node.js?
What is NPM?
Install Node.js and NPM
If you want to install Node.js 8 and NPM 5 you have to install them via RPM/DEB packages.
On Debian 8 and Ubuntu 16
Execute following commands one by one to install Node.JS 8 on Debian and Ubuntu:
apt-get install curl sudo
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
Now you can install Node.js and NPM easily by typing:
apt-get install nodejs
You can check the version of your Node.js and NPM with:
On CentOS 7
Issue the following commands to install Node.JS and NPM on your CentOS:
curl -sL https://rpm.nodesource.com/setup_8.x | bash -
yum install nodejs
It’s done, check the version of Node.js and NPM:
For more information, Please visit Node.JS official website!