1.将npm设置为淘宝镜像
npm config set registry https://registry.npm.taobao.org
2.通过cnpm使用淘宝镜像
npm install -g cnpm --registry=https://registry.npm.taobao.org
3. 查看cnpm镜像设置
npm config get registry
4.查看cnpm镜像设置
cnpm config get registry
npm config set registry https://registry.npm.taobao.org
npm install -g cnpm --registry=https://registry.npm.taobao.org
npm config get registry
cnpm config get registry
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。