npm 切换镜像源

设置镜像源

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

npm 官方原始镜像网址是:https://registry.npmjs.org/

淘宝 NPM 镜像:https://registry.npm.taobao.org

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

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

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

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

中国科学技术大学开源镜像站:http://mirrors.ustc.edu.cn/

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

验证切换是否成功

npm config get registry

相关推荐
2分钟速写快排6 小时前
孔乙己的茴字有多少种写法?|AI 对话实时通信的三种实现
前端·javascript·github
Penge6668 小时前
JavaScript:BOM 详解
前端
Penge6669 小时前
Vite vs Webpack:前端构建工具原理与实战
前端
Penge6669 小时前
前端包管理工具:npm、Yarn、pnpm 快速入门
前端
Penge6669 小时前
Sass 了解
前端
Penge66610 小时前
Webpack 打包从 0 到 1 实战笔记
前端
Penge66610 小时前
Webpack 入门:是什么、为什么需要、怎么使用?
前端
Penge66610 小时前
Ant Design(Antd)了解
前端
wangruofeng10 小时前
同一行代码,百种渲染:Asuka、React Native 与 Flutter 跨平台渲染机制深度拆解
前端·github
濮水大叔11 小时前
Cabloy/Vona 为什么不需要 NestJS 的 Dynamic Module
typescript·node.js·nestjs