美文网首页NodeJs
nvm管理node版本和安装

nvm管理node版本和安装

作者: darebeat | 来源:发表于2017-03-30 10:22 被阅读24次

安装nvm

sudo apt-get install git
git clone https://github.com/creationix/nvm.git /opt/nvm && cd /opt/nvm && git checkout `git describe --abbrev=0 --tags` 
echo "source /opt/nvm/nvm.sh">>~/.bashrc
source ~/.bashrc
nvm -v    #查看nvm版本

使用nvm安装node

nvm ls-remote
nvm install v7.8.0
nvm alias default v7.8.0 # 设置默认版本

相关文章

网友评论

    本文标题:nvm管理node版本和安装

    本文链接:https://www.haomeiwen.com/subject/meyuottx.html