0%

npm、yarn更换源

npm config set registry https://registry.npmmirror.com
yarn config set registry https://registry.npmmirror.com

npm config get registry
yarn config get registry

yarn 如果还是请求之前的源,要删掉 /Users/jun/.config/yarn/global 目录下的lock文件。

mark: yarn 更新自身版本命令 yarn set version latest

官方源:https://registry.npmjs.org

欢迎关注我的其它发布渠道