-
Notifications
You must be signed in to change notification settings - Fork 3.4k
[BUG] <npm crashes when trying to install/uninstall pacakges> #669
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
Comments
Hi @Raid5594, Please provide your npm and node versions so we can reproduce it.
|
I am getting the same error when I install a new package.
|
Can not repdoruce on Ubuntu:
|
I encountered this issue when I pulled my code from SVN. There were missing components and inconsistencies in the package.json reason I cannot install a new npm. I resolved this by excluding nodes/components and the package.json in SVN. |
npm If your bug is preproducible on If your issue was a feature request, please consider opening a new RRFC or RFC. If your issue was a question or other idea that was not CLI-specific, consider opening a discussion on our feedback repo Closing: This is an automated message. |
1 similar comment
npm If your bug is preproducible on If your issue was a feature request, please consider opening a new RRFC or RFC. If your issue was a question or other idea that was not CLI-specific, consider opening a discussion on our feedback repo Closing: This is an automated message. |
npm crashes when trying to install/uninstall pacakges
I get the following error, when installing the package
Tried to remove npm folder and cache, didn't help
npm install eciesjs
npm ERR! code EINVALIDTYPE
npm ERR! typeerror Error: Argument #2: Expected object but got null
npm ERR! typeerror at prepareAction (/usr/local/lib/node_modules/npm/lib/install/actions.js:183:3)
npm ERR! typeerror at actionsToRun.reduce (/usr/local/lib/node_modules/npm/lib/install/actions.js:152:16)
npm ERR! typeerror at Array.reduce ()
npm ERR! typeerror at runSerial (/usr/local/lib/node_modules/npm/lib/install/actions.js:150:29)
npm ERR! typeerror at doReverseSerial (/usr/local/lib/node_modules/npm/lib/install/actions.js:146:3)
npm ERR! typeerror at Array. (/usr/local/lib/node_modules/npm/node_modules/slide/lib/bind-actor.js:15:8)
npm ERR! typeerror at LOOP (/usr/local/lib/node_modules/npm/node_modules/slide/lib/chain.js:15:14)
npm ERR! typeerror at /usr/local/lib/node_modules/npm/node_modules/slide/lib/chain.js:18:7
npm ERR! typeerror at withInit.nodeify (/usr/local/lib/node_modules/npm/lib/install/actions.js:131:5)
npm ERR! typeerror at tryCatcher (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/util.js:16:23)
npm ERR! typeerror at Promise.successAdapter [as _fulfillmentHandler0] (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/nodeify.js:23:30)
npm ERR! typeerror at Promise._settlePromise (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:571:21)
npm ERR! typeerror at Promise._settlePromise0 (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:619:10)
npm ERR! typeerror at Promise._settlePromises (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:699:18)
npm ERR! typeerror at _drainQueueStep (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:138:12)
npm ERR! typeerror at _drainQueue (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/async.js:131:9)
npm ERR! typeerror This is an error with npm itself. Please report this error at:
npm ERR! typeerror https://npm.community
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/Raid/.npm/_logs/2020-01-08T15_25_45_613Z-debug.log
The text was updated successfully, but these errors were encountered: