[HowTo] Install Nodejs and NPM on VestaCP
[HowTo] Install Nodejs and NPM on VestaCP
STEP 1 :
Run as root on RHEL, CentOS, CloudLinux or Fedora:
Install build tools, this tools are necessary for the nodejs installation:
Now enable node.js yum repository :
To install NodeJS 10.x
To install NodeJS 8.x
To install NodeJS 6.x
STEP 2 :
Now we’re going to install node.js and NPM:
To check the version of npm and node.js run this commands :
Run as root on RHEL, CentOS, CloudLinux or Fedora:
Install build tools, this tools are necessary for the nodejs installation:
Code: Select all
yum install gcc-c++ make
OR
yum groupinstall 'Development Tools'
To install NodeJS 10.x
Code: Select all
curl -sL https://rpm.nodesource.com/setup_10.x | bash -
Code: Select all
curl -sL https://rpm.nodesource.com/setup_8.x | bash -
Code: Select all
curl -sL https://rpm.nodesource.com/setup_6.x | bash -
Now we’re going to install node.js and NPM:
Code: Select all
yum install nodejs -y
Code: Select all
[root@server ~]# npm -v
5.6.0
[root@server ~]# node -v
v10.1.0