故梦博客

npm yarn 更换源

yarn源配置

查看当前源

yarn config get registry

更换成淘宝源

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

恢复官方源

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

恢复搜索功能

yarn config delete registry

npm源站配置

查看当前源

npm config get registry

更换成淘宝源

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

恢复官方源

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

恢复搜索功能

npm config delete registry

当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »