Skip to main content

Command Palette

Search for a command to run...

npm使用国内镜像加速的几种方法

Published
1 min readView as Markdown
C
酷愛計算機技術Ardently Love Computer Technology 長期關註反洗錢反欺詐Long-term Focus on Anti-Money Laundering and Anti-Fraud 精通支付結算的技術、系統、流程和製度Proficient in the Technology, System, Process and Institution of Payment and Settlement

修改成淘宝镜像源

命令 npm config set registry https://registry.npmmirror.com

验证命令 npm config get registry https://registry.npmmirror.com

成功


https://cloud.tencent.com/developer/article/2483466

猫头虎分享:2025最新 npm 国内可用镜像源仓库地址


国内可用的 npm 镜像源

1.淘宝 NPM 镜像 地址:https://registry.npmmirror.com/

npm config set registry https://registry.npmmirror.com/

2.阿里云 NPM 镜像 地址:https://npm.aliyun.com/

npm config set registry https://npm.aliyun.com/

3.腾讯云 NPM 镜像 地址:https://mirrors.cloud.tencent.com/npm/

npm config set registry https://mirrors.cloud.tencent.com/npm/

4.华为云 NPM 镜像 地址:https://mirrors.huaweicloud.com/repository/npm/

npm config set registry https://mirrors.huaweicloud.com/repository/npm/

5.网易 NPM 镜像 地址:https://mirrors.163.com/npm/

npm config set registry https://mirrors.163.com/npm/

6.中国科学技术大学开源镜像站 地址:https://mirrors.ustc.edu.cn/npm/

npm config set registry https://mirrors.ustc.edu.cn/npm/

7.清华大学开源镜像站 地址:https://mirrors.tuna.tsinghua.edu.cn/npm/

npm config set registry https://mirrors.tuna.tsinghua.edu.cn/npm/

8.CNPM镜像 地址:https://r.cnpmjs.org/

npm config set registry https://r.cnpmjs.org/


安装cnpm

npm install -g cnpm --registry=https://registry.npmmirror.com

More from this blog

Penetration Test、Python、Weaponization

721 posts

微信 smartcat9999 反欺詐Anti-Fraud 反洗錢Anti-Money Laundering 反逃稅Anti-Tax Evasion 滲透測試Penetration Test 武器化Weaponization