设置NPM镜像命令

设置NPM镜像命令

NPM

查询当前镜像

npm get registry

设置为淘宝镜像

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

设置为官方镜像

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.yarnpkg.com

相关推荐
酒尘&1 天前
Hook学习-上篇
前端·学习·react.js·前端框架·react
houyhea1 天前
从香港竹脚手架到前端脚手架:那些"借来"的发展智慧与安全警示
前端
Q_Q5110082851 天前
python+django/flask+vue的大健康养老公寓管理系统
spring boot·python·django·flask·node.js
哈哈~haha1 天前
Step 14: Custom CSS and Theme Colors 自定义CSS类
前端·css·ui5
Ndmzi1 天前
Matlab编程技巧:自定义Simulink菜单(理解补充)
前端·javascript·python
我命由我123451 天前
VSCode - VSCode 修改文件树缩进
前端·ide·vscode·前端框架·编辑器·html·js
SoaringHeart1 天前
Flutter组件封装:验证码倒计时按钮 TimerButton
前端·flutter
San30.1 天前
深入理解 JavaScript OOP:从一个「就地编辑组件」看清封装、状态与原型链
开发语言·前端·javascript·ecmascript
AAA阿giao1 天前
JavaScript 原型与原型链:从零到精通的深度解析
前端·javascript·原型·原型模式·prototype·原型链
烛阴1 天前
C#异常概念与try-catch入门
前端·c#