Giter Site home page Giter Site logo

Comments (10)

fxfactorial avatar fxfactorial commented on May 3, 2024 2
yarn add --dev exp

or

npm i --dev exp

Then use the local one in your scripts of package.json:

...
"scripts": {
   "start": "exp start"
}

from expo-cli.

tuddman avatar tuddman commented on May 3, 2024

exp was working on Ubuntu 16.04 with version 44.0.0

but then

[exp] There is a new version of exp available (47.4.4).
You are currently using exp 44.0.0
Run `npm install -g exp` to get the latest version

so I did.

now I get error, and a failed install:

sudo npm install exp -g

> @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.

from expo-cli.

tuddman avatar tuddman commented on May 3, 2024

update:

so, as per usual, its permission issues.

tunnel issue has nothing to do with exp / ngrok

and everything to do with the default global node_modules folder on Ubuntu 16.04 and how ngrok can't write to it in the postinstall.js script without sudo

version 47.4.4 works fine

I fixed for myself by following the steps from here

from expo-cli.

gregpalaci avatar gregpalaci commented on May 3, 2024

Deleting node_modules and reinstalling seemed to help. I also moved to https://github.com/creationix/nvm for node incase it was a persmissions issue as stated above (I didn't get feedback from npm i if it was)

Node v9.4.0
Npm v5.6.0
Expo SDK 23
Expo CLI v44.0.0

from expo-cli.

fithaN avatar fithaN commented on May 3, 2024

I am also facing the same issue using mac os when installing exp with
sudo npm install exp -g.

@expo/[email protected] postinstall /usr/local/lib/node_modules/exp/node_modules/@expo/ngrok
node ./postinstall.js

ngrok - error unpacking binary { Error: EACCES: permission denied, open '/usr/local/lib/node_modules/exp/node_modules/@expo/ngrok/bin/ngrok'
errno: -13,
code: 'EACCES',
syscall: 'open',
path: '/usr/local/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-linux):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @expo/[email protected]: wanted {"os":"win32,linux","arch":"any"} (current: {"os":"darwin","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! /Users/fithan/.npm/_logs/2018-01-18T23_15_52_259Z-debug.log

I tried deleting and re installing node_modules .but didnt help.Also i tried Reinstall npm with a version manager using brew install node. But after all these , same error happens

from expo-cli.

fxfactorial avatar fxfactorial commented on May 3, 2024

@fithaN EACCES: permission denied. It means you have a permissions issue:

I'd say one way to get around this is to use a locally installed version of exp, like as a devDependency of your package.json.

from expo-cli.

fithaN avatar fithaN commented on May 3, 2024

how can that be done?

from expo-cli.

fithaN avatar fithaN commented on May 3, 2024

yes.that worked.thanks

from expo-cli.

gregpalaci avatar gregpalaci commented on May 3, 2024

https://docs.npmjs.com/getting-started/fixing-npm-permissions
Mac can brew install node
or use nvm or n node manager
or sudo chown -R $(whoami) ~/.npm

from expo-cli.

jakubste avatar jakubste commented on May 3, 2024

From what I'm seeing it was a long time ago and not necessarily caused by expo. I'm going to close this, feel free to reopen if the issue still occurs.

from expo-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.