Error installing Exp via npm

Asked

Viewed 135 times

-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?

  • 1

    This looks like access permission issue. Try to give permission in directory before trying to install.

  • @Viana already allowed 777 for all folders the part of node_modules, but nothing solved.

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 pole

Browser other questions tagged

You are not signed in. Login or sign up in order to post.