Skip to content

Instantly share code, notes, and snippets.

@adnanhz
Last active February 19, 2019 10:14
Show Gist options
  • Save adnanhz/e0670a5248c81d796392729eaa488751 to your computer and use it in GitHub Desktop.
Save adnanhz/e0670a5248c81d796392729eaa488751 to your computer and use it in GitHub Desktop.
Install New NodeJS on CentOS

Install New NodeJS on CentOS

So you've probably tried installing node naively via yum install node and got a very old version.

Here's what you should do:

sudo curl --silent --location https://rpm.nodesource.com/setup_8.x | bash -
sudo yum install -y nodejs

Note: in future updates, you may need to replace the 8 by the newer iteration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment