Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't Install in Ubuntu #120

Closed
CristoAMH opened this issue Aug 25, 2018 · 2 comments
Closed

Can't Install in Ubuntu #120

CristoAMH opened this issue Aug 25, 2018 · 2 comments

Comments

@CristoAMH
Copy link

I don't know what is the issue here.


Node version: v.10.9.0
NPM version: 6.4.0

Error:

/usr/local/bin/ngrok -> /usr/local/lib/node_modules/ngrok/bin/ngrok

ngrok@3.0.1 postinstall /usr/local/lib/node_modules/ngrok
node ./postinstall.js

ngrok - downloading binary https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
ngrok - error storing binary to local file { [Error: EACCES: permission denied, open '/usr/local/lib/node_modules/ngrok/bin/aHR0cHM6Ly9iaW4uZXF1aW5veC5pby9jLzRWbUR6QTdpYUhiL25ncm9rLXN0YWJsZS1saW51eC1hbWQ2NC56aXA=.zip']
errno: -13,
code: 'EACCES',
syscall: 'open',
path:
'/usr/local/lib/node_modules/ngrok/bin/aHR0cHM6Ly9iaW4uZXF1aW5veC5pby9jLzRWbUR6QTdpYUhiL25ncm9rLXN0YWJsZS1saW51eC1hbWQ2NC56aXA=.zip' }
ngrok - install failed, retrying
ngrok - downloading binary https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
ngrok - error storing binary to local file { [Error: EACCES: permission denied, open '/usr/local/lib/node_modules/ngrok/bin/aHR0cHM6Ly9iaW4uZXF1aW5veC5pby9jLzRWbUR6QTdpYUhiL25ncm9rLXN0YWJsZS1saW51eC1hbWQ2NC56aXA=.zip']
errno: -13,
code: 'EACCES',
syscall: 'open',
path:
'/usr/local/lib/node_modules/ngrok/bin/aHR0cHM6Ly9iaW4uZXF1aW5veC5pby9jLzRWbUR6QTdpYUhiL25ncm9rLXN0YWJsZS1saW51eC1hbWQ2NC56aXA=.zip' }
ngrok - install failed, retrying
ngrok - downloading binary https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
ngrok - error storing binary to local file { [Error: EACCES: permission denied, open '/usr/local/lib/node_modules/ngrok/bin/aHR0cHM6Ly9iaW4uZXF1aW5veC5pby9jLzRWbUR6QTdpYUhiL25ncm9rLXN0YWJsZS1saW51eC1hbWQ2NC56aXA=.zip']
errno: -13,
code: 'EACCES',
syscall: 'open',
path:
'/usr/local/lib/node_modules/ngrok/bin/aHR0cHM6Ly9iaW4uZXF1aW5veC5pby9jLzRWbUR6QTdpYUhiL25ncm9rLXN0YWJsZS1saW51eC1hbWQ2NC56aXA=.zip' }
ngrok - install failed { [Error: EACCES: permission denied, open '/usr/local/lib/node_modules/ngrok/bin/aHR0cHM6Ly9iaW4uZXF1aW5veC5pby9jLzRWbUR6QTdpYUhiL25ncm9rLXN0YWJsZS1saW51eC1hbWQ2NC56aXA=.zip']
errno: -13,
code: 'EACCES',
syscall: 'open',
path:
'/usr/local/lib/node_modules/ngrok/bin/aHR0cHM6Ly9iaW4uZXF1aW5veC5pby9jLzRWbUR6QTdpYUhiL25ncm9rLXN0YWJsZS1saW51eC1hbWQ2NC56aXA=.zip' }
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ngrok@3.0.1 postinstall: node ./postinstall.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ngrok@3.0.1 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! /home/cristoamh/.npm/_logs/2018-08-25T17_24_29_282Z-debug.log

@devansvd
Copy link

devansvd commented Aug 27, 2018

$ sudo npm install --unsafe-perm -g ngrok

source: #115 (comment)

@bubenshchykov
Copy link
Owner

bubenshchykov commented Sep 7, 2018

it's also a part of readme
https://github.com/bubenshchykov/ngrok#usage
unfortunately, can't get rid of --unsafe-perm at the moment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants