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

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

相关推荐
汉得数字平台9 分钟前
汉得H-AI飞码——前端编码助手V1.1.2正式发布:融业务知识,提开发效能
前端·人工智能·智能编码
前端小万9 分钟前
Jenkins 打包崩了?罪魁是 package.json 里的 ^
前端·jenkins
编程小白gogogo9 分钟前
苍穹外卖前端环境搭建
前端
光影少年13 分钟前
web端安全问题有哪些?
前端·安全
行走的陀螺仪20 分钟前
Vite & Webpack 插件/Loader 封装完全指南
前端·webpack·node.js·vite·前端工程化·打包构建
1024肥宅25 分钟前
浏览器网络请求 API:全面解析与高级封装(1)
前端·websocket·axios
小费的部落27 分钟前
Excel 在Sheet3中 匹配Sheet1的A列和Sheet2的A列并处理空内容
java·前端·excel
霍格沃兹测试学院-小舟畅学28 分钟前
Cypress 入门与优势分析:前端自动化测试的新利器
前端
1024肥宅28 分钟前
浏览器网络请求 API:全面解析与高级封装(2)
前端·websocket·axios
幼儿园技术家34 分钟前
深入理解 CSR / SSR / SSG:前端三种渲染模式的本质与选型
前端