Reputation: 85
I use centos release 6.9
current nodejs version v0.10.48
I want install nodejs 6.x version
and I try
yum install -y gcc-c++ make
curl -sL https://rpm.nodesource.com/setup_6.x | sudo -E bash -
yum install nodejs
but occur error enter image description here
how to install nodejs 6.x version on centos 6?
Upvotes: 2
Views: 1868
Reputation: 1528
The easiest way is use n
to switch the node version
To avoid some issue after version changed, please run this command.
npm cache clean -f
Then install n
npm i -g n
Now, use n
install node version you want. (I suggest you lts one.)
n lts
here is n
documentation https://github.com/tj/n
Upvotes: 3