node -v

v6.17.1

Add nodesource.com repository for yum:

curl -sL https://rpm.nodesource.com/setup_12.x | bash -

Remove node v6

sudo yum remove -y nodejs npm

Install node v12

sudo yum install -y nodejs
node -v

v12.20.0

Categorieën
CentOS
Zoeken