You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
npmWARN 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.
npmWARN deprecated browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npmWARN deprecated markdown-to-ast@3.4.0: See https://github.com/textlint/textlint/issues/455
npmWARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
npmWARN 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'
npmWARN react-native@0.58.5 requires a peer of react@16.6.3 but none is installed. You must install peer dependencies yourself.
npmWARN 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.
npmWARN 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.
npmWARN 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.
npmWARN optional SKIPPING OPTIONAL DEPENDENCY: ios-deploy@1.9.4 (node_modules/react-native-vanilla/node_modules/ios-deploy):
npmWARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for ios-deploy@1.9.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npmWARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.8 (node_modules/react-native-vanilla/node_modules/fsevents):
npmWARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.8: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npmERR! code ELIFECYCLE
npmERR! errno 1
npmERR! electron@4.0.5 postinstall: `node install.js`
npmERR! Exit status 1
npmERR!npmERR! Failed at the electron@4.0.5 postinstall script.
npmERR! This is probably not a problem with npm. There is likely additional logging output above.
npmERR! A complete log of this run can be found in:
npmERR! /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 > 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.
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
The text was updated successfully, but these errors were encountered:
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.
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
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 > 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.
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
The text was updated successfully, but these errors were encountered: