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


相关推荐
布兰妮甜6 分钟前
单例模式在前端(JavaScript)中的实现与应用
前端·javascript·单例模式
Mintopia6 分钟前
Three.js 加载模型文件:从二进制到像素的奇幻漂流
前端·javascript·three.js
前端小巷子25 分钟前
跨域问题解决方案:JSONP
前端·javascript·面试
eric*168833 分钟前
尚硅谷张天禹老师课程配套笔记
前端·vue.js·笔记·vue·尚硅谷·张天禹·尚硅谷张天禹
程序员爱钓鱼1 小时前
Go语言中的反射机制 — 元编程技巧与注意事项
前端·后端·go
GIS之路1 小时前
GeoTools 结合 OpenLayers 实现属性查询(二)
前端·信息可视化
烛阴1 小时前
一文搞懂 Python 闭包:让你的代码瞬间“高级”起来!
前端·python
AA-代码批发V哥1 小时前
HTML之表单结构全解析
前端·html
whhhhhhhhhw1 小时前
Node.js核心API(fs篇)
node.js
聪聪的学习笔记2 小时前
【1】确认安装 Node.js 和 npm版本号
前端·npm·node.js