Skip to content

Instantly share code, notes, and snippets.

@anyboo
Last active June 24, 2018 07:29
Show Gist options
  • Save anyboo/d6d56398884a5f5d3b0fb2788106a0ec to your computer and use it in GitHub Desktop.
Save anyboo/d6d56398884a5f5d3b0fb2788106a0ec to your computer and use it in GitHub Desktop.
About NodeJS TIP

How to Install&Uninstall NodeJS

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

Optional: install build tools

sudo yum install gcc-c++ make
  • CentOS Uninstallation
curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -
sudo yum remove nodejs
  • nvm installation
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
source ~/.bashrc
command -v nvm ## verify installation
nvm install 8

Better Node.js Install Management with Node Version Manager

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