npm安装淘宝镜像和查看镜像设置
1.通过cnpm使用淘宝镜像: npm install -g cnpm --registry=https://registry.npm.taobao.org 2.将npm设置为淘宝镜像:(建议输入如下修改,因为上面的安装需要这个修改下) npm config set registry https://registry.npm.taobao.org 3. 查看cnpm镜像设置: npm config get registry 输出:https://registry.npm.taobao.org/ 4.查看cnpm镜像设置: cnpm config get registry 输出:https://r.npm.taobao.org/ 来源: CSDN 作者: joker_meng 链接: https://blog.csdn.net/joker_meng/article/details/104111599