0
0

npm使用国内镜像加速

2024-01-28
2024-10-11
文章摘要
|
  1. 修改镜像源 - 华为云 npm config set registry https://mirrors.huaweicloud.com/repository/npm/ - 腾讯云 npm config set registry http://mirrors.cloud.tencent.com/npm/ - 淘宝 npm config set registry https://registry.npmmirror.com

  2. 使用淘宝定制的cnpm安装

  3. 安装cnpm npm install -g cnpm --registry=https://registry.npmmirror.com
  4. 使用cnpm cnpm install xxx

支持与分享

如果这篇文章对你有帮助,欢迎分享给更多人或者给予支持!