Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in China #55

Open
zaoqi opened this issue Feb 16, 2019 · 1 comment
Open

in China #55

zaoqi opened this issue Feb 16, 2019 · 1 comment

Comments

@zaoqi
Copy link

zaoqi commented Feb 16, 2019

$ yarn
yarn install v1.13.0
[1/5] Resolving packages...
[2/5] Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/5] Linking dependencies...
[4/5] Building fresh packages...
[1/2] ⠂ electron
error /home/23494_sandbox/src/electron-webpack-quick-start/node_modules/electron: Command failed.
Exit code: 1
Command: node install.js
Arguments: 
Directory: /home/23494_sandbox/src/electron-webpack-quick-start/node_modules/electron
Output:
Downloading tmp-12121-0-electron-v4.0.1-linux-x64.zip
Error: read ECONNRESET
/home/23494_sandbox/src/electron-webpack-quick-start/node_modules/electron/install.js:49
  throw err
  ^

Error: read ECONNRESET
    at TLSWrap.onStreamRead (internal/stream_base_commons.js:162:27)

$ yarn
yarn install v1.13.0
[1/5] Resolving packages...
[2/5] Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/5] Linking dependencies...
[4/5] Building fresh packages...
[1/2] ⠈ electron
error /home/23494_sandbox/src/electron-webpack-quick-start/node_modules/electron: Command failed.
Exit code: 1
Command: node install.js
Arguments: 
Directory: /home/23494_sandbox/src/electron-webpack-quick-start/node_modules/electron
Output:
Downloading tmp-12240-0-electron-v4.0.1-linux-x64.zip
Error: read ECONNRESET
/home/23494_sandbox/src/electron-webpack-quick-start/node_modules/electron/install.js:49
  throw err
  ^

Error: read ECONNRESET
    at TLSWrap.onStreamRead (internal/stream_base_commons.js:162:27)
@ikrong
Copy link

ikrong commented Feb 24, 2019

你可以使用淘宝 electron 镜像

yarn config set ELECTRON_MIRROR http://npm.taobao.org/mirrors/electron/

然后再执行 yarn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants