Getting NodeJS on CentOS 7 with NVM
-
NVM, the Node.js Version Manager, makes installing and managing Node.js quick and easy. By default, using YUM, on CentOS you get an old version of Node.js which is frustrating. Getting newer versions and managing them is easy with NVM and does not require root credentials, each user can install for themselves and manager their own versions. Very nice.
curl https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash source ~/.bash_profile nvm list-remote nvm install v7.5.0
This would get you the current version available today. Very quick, very easy and quite flexible. This makes Node development so much easier on CentOS. I am loving it and using this on Fedora as well.
Thanks to Digital Ocean for getting me started on finding the best way to handle this: https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-a-centos-7-server
-
Current version is v0.30.1
-
Confirmed that these instructions worked well on Ubuntu 15.04 as well.
-
Here are the commands to get the very latest NVM, as of today, and the latest Node 4 release...
curl https://raw.githubusercontent.com/creationix/nvm/v0.30.1/install.sh | bash
Restarted shell...
nvm install v4.2.4
And that is it.
-
Latest version...
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash
-
@scottalanmiller said in Getting NodeJS on CentOS 7 with NVM:
Latest version...
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash
up to 32.1 as of October 18, 2016
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.1/install.sh | bash
-
Updated to the latest NVM and NodeJS versions.
-
@scottalanmiller said in Getting NodeJS on CentOS 7 with NVM:
Updated to the latest NVM and NodeJS versions.
There is also the ability to check out the repo and just use get to pull the current but if I do that how do I didn't install in the same fashion that this is installed?
-
@JaredBusch said in Getting NodeJS on CentOS 7 with NVM:
@scottalanmiller said in Getting NodeJS on CentOS 7 with NVM:
Updated to the latest NVM and NodeJS versions.
There is also the ability to check out the repo and just use get to pull the current but if I do that how do I didn't install in the same fashion that this is installed?
I've not tried that either.