Skip to content

Issue with Global Install of Ngrok in Linux With NPM #87

Closed
@ghost

Description

Issue that arises.

Done with Arch Linux using npm version 5.3.0 with Linux Kernel 4.11.5-1-ARCH

sudo npm i -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
events.js:182
      throw er; // Unhandled 'error' event
      ^

Error: EACCES: permission denied, open '/usr/lib/node_modules/ngrok/ngrok.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!     /root/.npm/_logs/2017-07-22T14_30_23_601Z-debug.log

Content from Log File about the error

2136 verbose lifecycle [email protected]~postinstall: CWD: /usr/lib/node_modules/ngrok
2137 silly lifecycle [email protected]~postinstall: Args: [ '-c', 'node ./postinstall.js' ]
2138 silly lifecycle [email protected]~postinstall: Returned: code: 1  signal: null
2139 info lifecycle [email protected]~postinstall: Failed to exec postinstall script
2140 verbose unlock done using /root/.npm/_locks/staging-a072192f34a17023.lock for /usr/lib/node_modules/.staging
2141 verbose stack Error: [email protected] postinstall: `node ./postinstall.js`
2141 verbose stack Exit status 1
2141 verbose stack     at EventEmitter.<anonymous> (/usr/lib/node_modules/npm/lib/utils/lifecycle.js:289:16)
2141 verbose stack     at emitTwo (events.js:125:13)
2141 verbose stack     at EventEmitter.emit (events.js:213:7)
2141 verbose stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/lib/utils/spawn.js:40:14)
2141 verbose stack     at emitTwo (events.js:125:13)
2141 verbose stack     at ChildProcess.emit (events.js:213:7)
2141 verbose stack     at maybeClose (internal/child_process.js:897:16)
2141 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:208:5)
2142 verbose pkgid [email protected]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions