Error installing exp via npm

0

Error installing exp via npm

Expo is a set of tools, libraries and services that let you build native iOS and Android apps by writing JavaScript.

ERROR!

npm install exp -g

Even installing with sudo and everything else, it continues giving the error, underneath 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 this error?

    
asked by anonymous 22.02.2018 / 18:40

1 answer

0

Solution

for node installs on linux mint and ubuntu where it gets installed in /usr/bin/node and /usr/lib/node_modules, this did the trick for me:

$sudo yarn global add ngork --modules-folder /usr/lib/node_modules   
$sudo yarn global add exp --modules-folder /usr/lib/node_modules

I used the same solution for my archlinux

Original post

    
22.02.2018 / 19:36