Closed
Description
Similar to issue#87, I cannot do an npm install of ngrok globally. I have tried it on Ubuntu 17.10 and Raspbian Stretch. Perhaps the issue was fixed and now it is broken again?
$ sudo npm install -g ngrok
/usr/bin/ngrok -> /usr/lib/node_modules/ngrok/bin/ngrok
> [email protected] postinstall /usr/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/lib/node_modules/ngrok/bin/aHR0cHM6Ly9iaW4uZXF1aW5veC5pby9jLzRWbUR6QTdpYUhiL25ncm9rLXN0YWJsZS1saW51eC1hbWQ2NC56aXA=.zip'
errno: -13,
code: 'EACCES',
syscall: 'open',
path: '/usr/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/lib/node_modules/ngrok/bin/aHR0cHM6Ly9iaW4uZXF1aW5veC5pby9jLzRWbUR6QTdpYUhiL25ncm9rLXN0YWJsZS1saW51eC1hbWQ2NC56aXA=.zip'
errno: -13,
code: 'EACCES',
syscall: 'open',
path: '/usr/lib/node_modules/ngrok/bin/aHR0cHM6Ly9iaW4uZXF1aW5veC5pby9jLzRWbUR6QTdpYUhiL25ncm9rLXN0YWJsZS1saW51eC1hbWQ2NC56aXA=.zip' }
ngrok - install failed, retrying
ngrok - downloading progress: 36081/5363700ngrok - 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/lib/node_modules/ngrok/bin/aHR0cHM6Ly9iaW4uZXF1aW5veC5pby9jLzRWbUR6QTdpYUhiL25ncm9rLXN0YWJsZS1saW51eC1hbWQ2NC56aXA=.zip'
errno: -13,
code: 'EACCES',
syscall: 'open',
path: '/usr/lib/node_modules/ngrok/bin/aHR0cHM6Ly9iaW4uZXF1aW5veC5pby9jLzRWbUR6QTdpYUhiL25ncm9rLXN0YWJsZS1saW51eC1hbWQ2NC56aXA=.zip' }
ngrok - install failed { Error: EACCES: permission denied, open '/usr/lib/node_modules/ngrok/bin/aHR0cHM6Ly9iaW4uZXF1aW5veC5pby9jLzRWbUR6QTdpYUhiL25ncm9rLXN0YWJsZS1saW51eC1hbWQ2NC56aXA=.zip'
errno: -13,
code: 'EACCES',
syscall: 'open',
path: '/usr/lib/node_modules/ngrok/bin/aHR0cHM6Ly9iaW4uZXF1aW5veC5pby9jLzRWbUR6QTdpYUhiL25ncm9rLXN0YWJsZS1saW51eC1hbWQ2NC56aXA=.zip' }
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node ./postinstall.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [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! /home/dave/.npm/_logs/2018-04-03T19_25_00_566Z-debug.log
Here's the npm debug log output:
2263 info lifecycle [email protected]~postinstall: [email protected]
2264 verbose lifecycle [email protected]~postinstall: unsafe-perm in lifecycle false
2265 verbose lifecycle [email protected]~postinstall: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/usr/lib/node_modules/ngrok/node_modules/.bin:/usr/lib/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
2266 verbose lifecycle [email protected]~postinstall: CWD: /usr/lib/node_modules/ngrok
2267 silly lifecycle [email protected]~postinstall: Args: [ '-c', 'node ./postinstall.js' ]
2268 silly lifecycle [email protected]~postinstall: Returned: code: 1 signal: null
2269 info lifecycle [email protected]~postinstall: Failed to exec postinstall script
2270 verbose unlock done using /home/dave/.npm/_locks/staging-a072192f34a17023.lock for /usr/lib/node_modules/.staging
2271 verbose stack Error: [email protected] postinstall: `node ./postinstall.js`
2271 verbose stack Exit status 1
2271 verbose stack at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:285:16)
2271 verbose stack at EventEmitter.emit (events.js:180:13)
2271 verbose stack at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
2271 verbose stack at ChildProcess.emit (events.js:180:13)
2271 verbose stack at maybeClose (internal/child_process.js:936:16)
2271 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
2272 verbose pkgid [email protected]
2273 verbose cwd /home/dave
2274 verbose Linux 4.13.0-21-generic
2275 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "ngrok"
2276 verbose node v9.10.1
2277 verbose npm v5.6.0
2278 error code ELIFECYCLE
2279 error errno 1
2280 error [email protected] postinstall: `node ./postinstall.js`
2280 error Exit status 1
2281 error Failed at the [email protected] postinstall script.
2281 error This is probably not a problem with npm. There is likely additional logging output above.
2282 verbose exit [ 1, true ]
Metadata
Assignees
Labels
No labels
Activity