npm、yarn、pnpm设置镜像解决下载electron卡住的问题 npm configsetELECTRON_MIRROR https://npmmirror.com/mirrors/electron/pnpm configsetELECTRON_MIRROR https://npmmirror.com/mirrors/electron/yarn configsetELECTRON_MIRROR https://npmmirror.com/mirrors/electron/ npm ERR! `ELECTRON_MIRROR` is not a valid ...
在该文件中加入淘宝镜像源: sass_binary_site=https://npm.taobao.org/mirrors/node-sass/registry=https://registry.npm.taobao.orgELECTRON_MIRROR=https://npm.taobao.org/mirrors/electron/ Bash 之后重新使用 NPM 或者 Yarn 安装依赖,基本可以解决问题。 另外,设置.npmrc可以解决大部分依赖拉不下来、下载慢的...
yarn config set ELECTRON_MIRROR https://npmmirror.com/mirrors/electron/ 1. 2. 3. npm ERR! `ELECTRON_MIRROR` is not a valid npm option npm config ls 1. 这个是地址 进文件添加一行 ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ 1....