Ubuntu 16.04.3 安装nvm

最近给一批执行机安装node环境,记录下过程

安装nvm
test1234@test1234:~$ wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
=> nvm is already installed in /home/test1234/.nvm, trying to update using git
=> error: pathspec 'v0.33.0' did not match any file(s) known to git.
=> Compressing and cleaning up git repository
对象计数中: 2869, 完成.
Delta compression using up to 4 threads.
压缩对象中: 100% (2838/2838), 完成.
写入对象中: 100% (2869/2869), 完成.
Total 2869 (delta 1648), reused 1160 (delta 0)

=> nvm source string already in /home/test1234/.bashrc
=> bash_completion source string already in /home/test1234/.bashrc
=> Close and reopen your terminal to start using nvm or run the following to use it now:

export NVM_DIR="/home/test1234/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
使环境变量生效
test1234@test1234:~$ source .bashrc
安装node
test1234@test1234:~$ nvm install 4.2.4
v4.2.4 is already installed.
Now using node v4.2.4 (npm v2.14.12)
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值