更改npm镜像源,使用cnpm淘宝镜像配置
其他
2021-03-30 10:04:43
阅读次数: 0
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