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

相关推荐
鱼樱前端27 分钟前
uni-app快速入门章法(二)
前端·uni-app
silent_missile41 分钟前
vue3父组件和子组件之间传递数据
前端·javascript·vue.js
IT_陈寒2 小时前
Vue 3.4 实战:这7个Composition API技巧让我的开发效率飙升50%
前端·人工智能·后端
少年阿闯~~3 小时前
HTML——1px问题
前端·html
Mike_jia3 小时前
SafeLine:自托管WAF颠覆者!一键部署守护Web安全的雷池防线
前端
brzhang3 小时前
把网页的“好句子”都装进侧边栏:我做了个叫 Markbox 的收藏器,开源!
前端·后端·架构
VincentFHR5 小时前
Canvas 高性能K线图,支持无限左右滑动
前端·数据可视化·canvas
sophie旭5 小时前
一道面试题,开始性能优化之旅(3)-- DNS查询+TCP(二)
前端·面试·性能优化
面向星辰5 小时前
css选择器(继承补充)
前端·css
koooo~5 小时前
Vue3中的依赖注入
前端·javascript·vue.js