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

Installation Error | ELIFECYCLE | electron@4.0.5 postinstall: node install.js #40

Closed
mawaisqr opened this issue Apr 19, 2019 · 3 comments
Assignees
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@mawaisqr
Copy link

I want to make an app for Android TV, I bought Mi Box S for testing as well but I am getting electron error on installation of react-native-vanilla : -

First thing first, why this package is even trying to install electron??? And then this electron is creating a lot problem for me here....

I'm using Ubuntu 18.04
npm version 6.9.0
node version 10.15.3

awais@awais-desktop:~/Desktop/tmp$ sudo npm install react-native-vanilla@latest -g
[sudo] password for awais: 
npm WARN deprecated natives@1.1.6: This module relies on Node.js's internals and will break at some point. Do not use it, and update to graceful-fs@4.x.
npm WARN deprecated browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated markdown-to-ast@3.4.0: See https://github.com/textlint/textlint/issues/455
npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated kleur@2.0.2: Please upgrade to kleur@3 or migrate to 'ansi-colors' if you prefer the old syntax. Visit <https://github.com/lukeed/kleur/releases/tag/v3.0.0\> for migration path(s).
/usr/local/bin/rnv -> /usr/local/lib/node_modules/react-native-vanilla/rnv-cli/bin/index.js

> husky@1.2.0 install /usr/local/lib/node_modules/react-native-vanilla/node_modules/husky
> node husky install

husky > setting up git hooks
Can't find .git, skipping Git hooks installation.
Please check that you're in a cloned repository or run 'git init' to create an empty Git repository and reinstall husky.

> electron@4.0.5 postinstall /usr/local/lib/node_modules/react-native-vanilla/node_modules/electron
> node install.js

/usr/local/lib/node_modules/react-native-vanilla/node_modules/electron/install.js:49
  throw err
  ^

Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/react-native-vanilla/node_modules/electron/.electron'
npm WARN react-native@0.58.5 requires a peer of react@16.6.3 but none is installed. You must install peer dependencies yourself.
npm WARN react-native-web@0.9.9 requires a peer of react-art@>=16.5.1 but none is installed. You must install peer dependencies yourself.
npm WARN extract-text-webpack-plugin@3.0.2 requires a peer of webpack@^3.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-config-airbnb-base@13.1.0 requires a peer of eslint-plugin-import@^2.14.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ios-deploy@1.9.4 (node_modules/react-native-vanilla/node_modules/ios-deploy):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for ios-deploy@1.9.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.8 (node_modules/react-native-vanilla/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.8: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! electron@4.0.5 postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the electron@4.0.5 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/awais/.npm/_logs/2019-04-19T12_27_14_636Z-debug.log

I searched on internet and realized that adding --unsafe-perm=true --allow-root with install instruction might be helpful, but it was not.

awais@awais-desktop:~/Desktop/tmp$ sudo npm install react-native-vanilla@latest -g --unsafe-perm=true --allow-root
[sudo] password for awais:
npm WARN deprecated natives@1.1.6: This module relies on Node.js's internals and will break at some point. Do not use it, and update to graceful-fs@4.x.
npm WARN deprecated browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated markdown-to-ast@3.4.0: See textlint/textlint#455
npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated kleur@2.0.2: Please upgrade to kleur@3 or migrate to 'ansi-colors' if you prefer the old syntax. Visit https://github.com/lukeed/kleur/releases/tag/v3.0.0\ for migration path(s).
/usr/local/bin/rnv -> /usr/local/lib/node_modules/react-native-vanilla/rnv-cli/bin/index.js

husky@1.2.0 install /usr/local/lib/node_modules/react-native-vanilla/node_modules/husky
node husky install

husky > setting up git hooks
Can't find .git, skipping Git hooks installation.
Please check that you're in a cloned repository or run 'git init' to create an empty Git repository and reinstall husky.

electron@4.0.5 postinstall /usr/local/lib/node_modules/react-native-vanilla/node_modules/electron
node install.js

Downloading tmp-13190-0-electron-v4.0.5-linux-x64.zip
Error: read ECONNRESET
/usr/local/lib/node_modules/react-native-vanilla/node_modules/electron/install.js:49
throw err
^

Error: read ECONNRESET
at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27)
npm WARN react-native-web@0.9.9 requires a peer of react-art@>=16.5.1 but none is installed. You must install peer dependencies yourself.
npm WARN react-native@0.58.5 requires a peer of react@16.6.3 but none is installed. You must install peer dependencies yourself.
npm WARN extract-text-webpack-plugin@3.0.2 requires a peer of webpack@^3.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN eslint-config-airbnb-base@13.1.0 requires a peer of eslint-plugin-import@^2.14.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ios-deploy@1.9.4 (node_modules/react-native-vanilla/node_modules/ios-deploy):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for ios-deploy@1.9.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.8 (node_modules/react-native-vanilla/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.8: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! electron@4.0.5 postinstall: node install.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the electron@4.0.5 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/awais/.npm/_logs/2019-04-19T13_02_22_251Z-debug.log

@pavjacko pavjacko added the bug Something isn't working label Apr 28, 2019
@pavjacko pavjacko self-assigned this May 25, 2019
@pavjacko
Copy link
Member

@mawaisqr thx for the report! yes there is issue on Linux based OS with running Electron based projects. looking into it.

@zengqi
Copy link

zengqi commented Aug 10, 2019

@mawaisqr add params

--unsafe-perm=true --allow-root

@stale
Copy link

stale bot commented Oct 9, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Oct 9, 2019
@stale stale bot closed this as completed Oct 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants