-1
Error installing Exp via npm
Expo is a set of tools, Libraries and services which Let you build Native iOS and Android apps by writing Javascript.
ERROR!
npm install exp -g
Even installing with sudo and everything but, still giving the error, below the exit of the error.
@expo/[email protected] preinstall /usr/lib/node_modules/exp/node_modules/@expo/traveling-fastlane-linux
node platform.js
/usr/bin/exp -> /usr/lib/node_modules/exp/bin/exp.js
[email protected] postinstall /usr/lib/node_modules/exp/node_modules/spawn-sync
node postinstall
@expo/[email protected] postinstall /usr/lib/node_modules/exp/node_modules/@expo/ngrok
node ./postinstall.js
ngrok - error unpacking binary { Error: EACCES: permission denied, open '/usr/lib/node_modules/exp/node_modules/@expo/ngrok/bin/ngrok'
errno: -13,
code: 'EACCES',
syscall: 'open',
path: '/usr/lib/node_modules/exp/node_modules/@expo/ngrok/bin/ngrok' }
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @expo/[email protected] (node_modules/exp/node_modules/@expo/traveling-fastlane-darwin):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @expo/[email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @expo/[email protected] postinstall: `node ./postinstall.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @expo/[email protected] 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! /root/.npm/_logs/2018-02-22T14_18_35_034Z-debug.log
}
Has anyone ever come across such a mistake?
This looks like access permission issue. Try to give permission in directory before trying to install.
– viana
@Viana already allowed 777 for all folders the part of node_modules, but nothing solved.
– Agnaldo Marinho