linux 安装 nvm

curl方式

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash

wget方式

wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash

git方式

git config --global --unset http.proxy
git config --global --unset https.proxy

git clone git://github.com/creationix/nvm.git ~/nvm 
//https://github.com/nvm-sh/nvm.git
command -v nvm
echo "source ~/nvm/nvm.sh" >> ~/.bashrc
source ~/.bashrc
nvm list-remote

ubuntu系统

sudo apt-get install git

centos

sudo yum install git


source ~/.bashrc

nvm ls-remote
nvm install XX
nvm list
nvm use xx

你可能感兴趣的:(linux,服务器,centos)