npm替换成cnpm(淘宝镜像)
首先在命令行输入一下命令,即可查看当前命令
1.得到原本的镜像地址
npm get registry
输出 https://registry.npmjs.org/
设成淘宝的
npm config set registry http://registry.npm.taobao.org/
2.换成原来的
npm config set registry https://registry.npmjs.org/
npm替换成cnpm(淘宝镜像)
首先在命令行输入一下命令,即可查看当前命令
1.得到原本的镜像地址
npm get registry
输出 https://registry.npmjs.org/
设成淘宝的
npm config set registry http://registry.npm.taobao.org/
2.换成原来的
npm config set registry https://registry.npmjs.org/