Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search
Reminder: On the servers affected by ChachaDDoS passwords for admin and root need to be changed necessarily

[HowTo] Install Nodejs and NPM on VestaCP

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
1 post • Page 1 of 1
xorro
Posts: 81
Joined: Sun Nov 13, 2016 3:11 pm
Contact:
Contact xorro
Website Skype

Os: CentOS 7x
Web: apache + nginx
[HowTo] Install Nodejs and NPM on VestaCP
  • Quote

Post by xorro » Tue Sep 11, 2018 6:56 pm

STEP 1 :
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'
Now enable node.js yum repository :

To install NodeJS 10.x

Code: Select all

curl -sL https://rpm.nodesource.com/setup_10.x | bash -
To install NodeJS 8.x

Code: Select all

curl -sL https://rpm.nodesource.com/setup_8.x | bash -
To install NodeJS 6.x

Code: Select all

curl -sL https://rpm.nodesource.com/setup_6.x | bash -
STEP 2 :
Now we’re going to install node.js and NPM:

Code: Select all

yum install nodejs -y
To check the version of npm and node.js run this commands :

Code: Select all

[root@server ~]# npm -v
5.6.0

[root@server ~]# node -v
v10.1.0
Top


Post Reply
  • Print view
1 post • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password