npm 换源

可用的npm源:

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

淘宝镜像网址:http://registry.npmmirror.com

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

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

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

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

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

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

换源,地址在上面,下列" xxxxxxx " 表示网址

npm config set registry xxxxxxx

例如:

换淘宝源:

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


相关推荐
遂心_2 分钟前
DOM元素内容修改全攻略:从innerHTML到现代API的最佳实践
前端·javascript·react.js
溯水流光3 分钟前
React 源码解析
前端
光影少年6 分钟前
Typescript工具类型
前端·typescript·掘金·金石计划
北风GI10 分钟前
如何在 vue3+vite 中使用 Element-plus 实现 自定义主题 多主题切换
前端
月亮慢慢圆10 分钟前
网络监控状态
前端
_AaronWong15 分钟前
实现 Electron 资源下载与更新:实时进度监控
前端·electron
Doris_202317 分钟前
Python条件判断语句 if、elif 、else
前端·后端·python
Doris_202322 分钟前
Python 模式匹配match case
前端·后端·python
森林的尽头是阳光35 分钟前
vue防抖节流,全局定义,使用
前端·javascript·vue.js
前端双越老师36 分钟前
2025 年还有前端不会 Nodejs ?
node.js·agent·全栈