npm和yarn镜像源更新

设置yarn的下载源为淘宝镜像

yarn config set registry https://registry.npmmirror.com/
yarn config set disturl https://npmmirror.com/dist
yarn config set electron_mirror https://npmmirror.com/mirrors/electron/
官方镜像地址: https://registry.yarnpkg.com

清理缓存

yarn cache clean

设置npm的下载源为淘宝镜像

npm config set registry https://registry.npmmirror.com/
npm config set electron_mirror https://npmmirror.com/mirrors/electron/

清理缓存

npm cache clean -f

猜你喜欢

转载自blog.csdn.net/it_xcr/article/details/121283175