最新消息:yaf表单扩展中新增加了浮点数、日期和集合的校验。php yaf框架扩展实践三——表单

centos6通过官方脚本安装nvm

NodeJS 643浏览 0评论

一开始尝试yum search没有找到对应包,后来找到nvm github源码库,官网提供了自动安装的脚本

$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.4/install.sh | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  9135  100  9135    0     0   1847      0  0:00:04  0:00:04 --:--:-- 11019
=> Downloading nvm from git to '/root/.nvm'
=> Initialized empty Git repository in /root/.nvm/.git/
remote: Counting objects: 5214, done.
Receiving objects: 100% (5214/5214), 1.40 MiB | 421 KiB/s, done.
remote: Total 5214 (delta 0), reused 0 (delta 0), pack-reused 5214
Resolving deltas: 100% (3142/3142), done.
Your version of git is out of date. Please update it!

=> Appending source string to /root/.bashrc
bash: line 293: /nvm.sh: No such file or directory
=> Close and reopen your terminal to start using nvm or run the following to use it now:

export NVM_DIR="/root/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"  # This loads nvm

安装完成后,输出的提示信息中有提示:退出重新登录就可以了用nvm命令了。重新登录终端terminal

$ nvm --version
0.31.4

关于nvm的使用和原理说明可以参考这篇:nodejs多版本管理工具nvm和实现原理

转载请注明:快乐编程 » centos6通过官方脚本安装nvm

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址