更改npm镜像源,使用cnpm淘宝镜像配置

npm转换为cnpm

命令 说明
npm --registry ‘https://registry.npm.taobao.org’ install express 临时方式
npm install -g cnpm --registry=‘https://registry.npm.taobao.org’ cnpm 方式
npm config set registry ‘https://registry.npm.taobao.org’ 换源
npm config get registry 验证是否成功

猜你喜欢

转载自blog.csdn.net/m0_46442996/article/details/109134888