欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

nmp 设置淘宝镜像

程序员文章站 2022-05-29 17:10:31
...

nmp 设置淘宝镜像

·20191018·


nmp 设置淘宝镜像

2019/8/17 9:18:21

一、通过命令设置

1.命令

npm config set registry https://registry.npm.taobao.org

2.验证命令

npm config get registry

如果返回下面,则成功!

https://registry.npm.taobao.org

二、通过使用cnpm安装

命令

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

三、问题