maomingchao

github node.js

#安装github
yum install git -y

#下载nvm
git clone git://github.com/creationix/nvm.git ~/nvm


#设置nvm 自动运行;
echo "source ~/nvm/nvm.sh" >> ~/.bashrc
source ~/.bashrc

#查询node版本
nvm list-remote

#安装node.js
nvm install v6.0.0

#使用nodejs
nvm use v6.0.0

posted on 2019-02-18 13:05  maomingchao  阅读(132)  评论(0编辑  收藏  举报

导航