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

error code ELIFECYCLE #200

Open
arunpkumar92 opened this issue Dec 1, 2020 · 8 comments
Open

error code ELIFECYCLE #200

arunpkumar92 opened this issue Dec 1, 2020 · 8 comments

Comments

@arunpkumar92
Copy link

2113 error code ELIFECYCLE
2114 error errno 1
2115 error [email protected] postinstall: node ./postinstall.js
2115 error Exit status 1
2116 error Failed at the [email protected] postinstall script.
2116 error This is probably not a problem with npm. There is likely additional logging output above.
2117 verbose exit [ 1, true ]

@philnash
Copy link
Collaborator

philnash commented Dec 1, 2020

Hi @arunpkumar92, thanks for this report. Could you give a few more details please? To start, what operating system are you running this on? Also, what Node version? And was there any other relevant logs in the output from before this error?

@arunpkumar92
Copy link
Author

OS - Catalina
node - v12.13.1

@philnash
Copy link
Collaborator

philnash commented Dec 4, 2020

Thanks for those bits, can you also let me know whether there were any other logs in the output from before the error?

@SonsofKings
Copy link

Doesn't look like there's been any updates on this issue but I started getting this myself. Is it ok if I bump with included logs?

root@raspberrypi:/home/pi/nrlx# npm i ngrok

> [email protected] postinstall /home/pi/nrlx/node_modules/ngrok
> node ./postinstall.js

internal/util.js:214
    throw new errors.TypeError('ERR_INVALID_ARG_TYPE', 'original', 'function');
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "original" argument must be of type function
    at promisify (internal/util.js:214:11)
    at Object.<anonymous> (/home/pi/nrlx/node_modules/extract-zip/index.js:11:18)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Module.require (module.js:597:17)
    at require (internal/module.js:11:18)
    at downloadNgrok (/home/pi/nrlx/node_modules/ngrok/download.js:14:23)
npm WARN [email protected] requires a peer of encoding@^0.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN @nrlx/[email protected] No description
npm WARN @nrlx/[email protected] No repository field.

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/2022-03-06T17_09_18_462Z-debug.log

@philnash
Copy link
Collaborator

philnash commented Mar 6, 2022

Thanks for the logs @SonsofKings. What version of Node.js are you installing this with?

@SonsofKings
Copy link

hey @philnash thanks for getting back to me, I'm running node 16.14.0

@philnash
Copy link
Collaborator

philnash commented Mar 8, 2022

Huh, that's not it then.

The error you are getting says that it happened on line 14 of download.js which is where extract-zip is required.

Can you try to npm install extract-zip and just run a simple test where you require it (even in the REPL) on your raspberry pi and see what happens?

@philnash
Copy link
Collaborator

Hi @SonsofKings, were you able to look further into this?

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