Skip to content

Instantly share code, notes, and snippets.

@hauntingEcho
Created June 30, 2017 18:09
Show Gist options
  • Save hauntingEcho/51ae0398f67f83817b4ef535e8e73d43 to your computer and use it in GitHub Desktop.
Save hauntingEcho/51ae0398f67f83817b4ef535e8e73d43 to your computer and use it in GitHub Desktop.
$ npm uninstall -g chai
Unhandled rejection Error: Argument #2: Expected string but got nullinstall loadIdealTree
at addDependency (/usr/local/lib/node_modules/npm/lib/install/deps.js:515:3)
at /usr/local/lib/node_modules/npm/lib/install/deps.js:463:5
at /usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:52:35
at Array.forEach (native)
at /usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:52:11
at Array.forEach (native)
at asyncMap (/usr/local/lib/node_modules/npm/node_modules/slide/lib/async-map.js:51:8)
at loadDeps (/usr/local/lib/node_modules/npm/lib/install/deps.js:455:3)
at Array.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/slide/lib/bind-actor.js:15:8)
at LOOP (/usr/local/lib/node_modules/npm/node_modules/slide/lib/chain.js:15:14)
at /usr/local/lib/node_modules/npm/node_modules/slide/lib/chain.js:18:7
at /usr/local/lib/node_modules/npm/lib/install/and-finish-tracker.js:8:8
at resolveBranchDeps.then (/usr/local/lib/node_modules/npm/lib/install/deps.js:419:11)
at tryCatcher (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:569:18)
npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/REMOVED/.npm/_logs/2017-06-30T17_59_24_425Z-debug.log
$ npm list -g --depth=0
/usr/local/lib
├── babel-eslint@7.2.3
├── chai@4.0.0
├── UNMET PEER DEPENDENCY eslint@4.1.1
├── eslint-config-airbnb@15.0.1
├── eslint-plugin-import@2.2.0
├── eslint-plugin-jsx-a11y@5.0.3
├── eslint-plugin-react@7.0.1
├── mocha@3.4.2
├── npm@5.0.4
└── serverless@1.14.0
npm ERR! peer dep missing: eslint@^3.19.0, required by eslint-config-airbnb@15.0.1
npm ERR! peer dep missing: eslint@2.x - 3.x, required by eslint-plugin-import@2.2.0
npm ERR! peer dep missing: eslint@^2.10.2 || 3.x, required by eslint-plugin-jsx-a11y@5.0.3
npm ERR! peer dep missing: eslint@^3.0.0, required by eslint-plugin-react@7.0.1
npm ERR! peer dep missing: eslint@^3.19.0, required by eslint-config-airbnb-base@11.2.0
$ cat /Users/REMOVED/.npm/_logs/2017-06-30T17_59_24_425Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/node@6/6.11.0/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'uninstall',
1 verbose cli '-g',
1 verbose cli 'chai' ]
2 info using npm@5.0.4
3 info using node@v6.11.0
4 verbose npm-session 1a8ae4291c6df5f1
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 silly install loadIdealTree
8 silly install cloneCurrentTreeToIdealTree
9 silly install loadShrinkwrap
10 silly uninstall loadAllDepsIntoIdealTree
11 silly install loadAllDepsIntoIdealTree
12 error cb() never called!
13 error This is an error with npm itself. Please report this error at:
14 error <https://github.com/npm/npm/issues>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment