yarn、npm设置淘宝国内镜像

NPM

1. 查询当前镜像

复制代码
npm get registry 

2. 设置为淘宝镜像

复制代码
npm config set registry https://registry.npm.taobao.org/        (旧地址,不再维护,可以使用)
npm config set registry https://registry.npmmirror.com/         (最新地址)

3. 设置为官方镜像

复制代码
npm config set registry https://registry.npmjs.org/

YARN(同理)

1. 查询当前镜像

复制代码
yarn config get registry

2. 设置为淘宝镜像

复制代码
yarn config set registry https://registry.npm.taobao.org/        (旧地址)
yarn config set registry https://registry.npmmirror.com/         (最新地址)

3. 设置为官方镜像

复制代码
yarn config set registry https://registry.yarnpkg.com
相关推荐
Front思9 分钟前
Vue3仿美团实现骑手路线规划
开发语言·前端·javascript
徐同保12 分钟前
Nano Banana AI 绘画创作前端代码(使用claude code编写)
前端
Ulyanov13 分钟前
PyVista与Tkinter桌面级3D可视化应用实战
开发语言·前端·python·3d·信息可视化·tkinter·gui开发
计算机程序设计小李同学13 分钟前
基于Web和Android的漫画阅读平台
java·前端·vue.js·spring boot·后端·uniapp
lkbhua莱克瓦2415 分钟前
HTML与CSS核心概念详解
前端·笔记·html·javaweb
沛沛老爹16 分钟前
从Web到AI:Agent Skills CI/CD流水线集成实战指南
java·前端·人工智能·ci/cd·架构·llama·rag
GISer_Jing24 分钟前
1.17-1.23日博客之星投票,每日可投
前端·人工智能·arcgis
代码游侠29 分钟前
学习笔记——ARM Cortex-A 裸机开发实战指南
linux·运维·开发语言·前端·arm开发·笔记
m0_7482546632 分钟前
CSS 编辑器
前端·css·编辑器
Amumu1213834 分钟前
React扩展(二)
前端·javascript·react.js