nvm
创建目录
1 | mkdir -p /usr/local/nvm |
下载源码
1 | git clone https://github.com/nvm-sh/nvm.git /usr/local/nvm |
切换目录
1 | cd /usr/local/nvm |
安装
1 | ./install.sh |
添加淘宝镜像
1 | export NVM_NODEJS_ORG_MIRROR=https://npm.taobao.org/dist |
重启配置文件不会操作也可以重启Linux
1 | source ~/.bashrc |
开始安装
1 | nvm install stable |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.