Comments (10)
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.
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.
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.
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.
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.
@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.
how can that be done?
from expo-cli.
yes.that worked.thanks
from expo-cli.
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.
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)
- "Error: NPM package not found: exp-template-blank-typescript@latest" when using Typescript template HOT 1
- Getting an unexpected token when I try to install expo-cli or npx expo-cli -h HOT 1
- Allow for expo start -i in CI environments HOT 1
- The data couldn't be read because it isn't in the correct format. HOT 1
- Still not able to get CLI to work.... HOT 1
- Node dependencies caming Corrupted HOT 1
- [expo-doctor] Field: experiments - should NOT have additional property 'tsconfigPaths' HOT 1
- Error using templates with a scoped package name
- (doctor) cannot run expo-doctor in GitHub Actions HOT 1
- "Development team for signing the app" not updating HOT 2
- expo-doctor unable to run after upgrading to 49 from 42 HOT 4
- EAS Update not detecting .env files for different environments HOT 5
- Change ADB path in Expo HOT 1
- Build Webhook stopped sending expo-signature header HOT 1
- Error about Xcode not installed when it is actually installed. HOT 1
- No iOS devices available in Simulator.app HOT 1
- Error: xcrun exited with non-zero code: 115 HOT 9
- create-expo-module fails with installing module dependencies HOT 1
- Expo CLI commands have typescript syntax in a .js file HOT 1
- Can somebody help me resolving this error? Facing it while deploying my react native app over AWS Amplify. Cannot find module 'expo/config' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from expo-cli.