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 disturl https://npmmirror.com/dist
npm config set electron_mirror https://npmmirror.com/mirrors/electron/

清理缓存

npm cache clean -f

上一篇:ERROR 1176 (42000): Key 'XXX' doesn't exist in table 'XXX'报错处理


下一篇:VSCode中无法找到npm、yarn、node等命令