npm切换镜像源
npm切换镜像源
安装 npm & nodejs
Linux(RHEL系列)安装npm & nodejs
1 | yum -y install npm |
查看镜像源使用状态:npm config get registry
切换到官方镜像源:npm config set registry http://www.npmjs.org
切换到淘宝镜像源:npm config set registry http://registry.npm.taobao.org
切换npm源:
1 | npm config set registry http://registry.npm.taobao.org |
安装nrm插件
安装nrm插件:
1 | npm install nrm -g |

