安装cnpm设置npm淘宝镜像源

安装cnpm

npm install -g cnpm

验证npm镜像源

npm config get registry

题外话:cnpm和npm区别?

cnpm其实就是在npm的基础上将镜像源更换到国内,其实以下两条命令是等效的,相信应该通过这两条命令应该可以了解到其中的区别所在

cnpm install
npm install --registry=https://registry.npm.taobao.org

推荐

npm install --registry=https://registry.npm.taobao.org
posted @ 2020-09-05 17:15  有来技术  阅读(4901)  评论(0编辑  收藏  举报