孙肖宁

CentOS安装nodejs
如果系统还没有安装git,请先安装git:yum install git。然后从 github clone nvm...
扫描右侧二维码阅读全文
19
2018/07

CentOS安装nodejs

  1. 如果系统还没有安装git,请先安装git:yum install git
  2. 然后从 github clone nvm 到本地, git clone https://github.com/cnpm/nvm.git
  3. 配置终端启动时自动执行 source ~/git/nvm/nvm.sh, 在 ~/.bashrc, ~/.bash_profile, ~/.profile, 或者 ~/.zshrc 文件添加以下命令:source ~/git/nvm/nvm.sh
  4. 最后通过nvm安装你需要的版本nvm install 10.7.0
  5. 检测是否成功,输入node --v显示版本号就成功了。
Last modification:July 19th, 2018 at 02:46 pm
If you think my article is useful to you, please feel free to appreciate

Leave a Comment