首页 前端知识 前端npm和yarn更换国内淘宝镜像

前端npm和yarn更换国内淘宝镜像

2024-06-26 23:06:01 前端知识 前端哥 575 426 我要收藏

NPM

查询当前镜像

npm get registry 

 设置为淘宝镜像

npm config set registry https://registry.npm.taobao.org/        (旧地址)
npm config set registry https://registry.npmmirror.com/         (最新地址)

 设置为官方镜像

npm config set registry https://registry.npmjs.org/

 YARN

查询当前镜像

yarn config get registry

 设置为淘宝镜像

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

 设置为官方镜像

yarn config set registry https://registry.yarnpkg.com

转载请注明出处或者链接地址:https://www.qianduange.cn//article/13621.html
标签
评论
发布的文章

Markdown基础与进阶语法

2024-06-30 22:06:12

零基础 HTML 入门(详细)

2024-06-30 22:06:09

CSS3基本语法

2024-06-30 22:06:51

大家推荐的文章
会员中心 联系我 留言建议 回顶部
复制成功!