`npm dedupe` throwing an error

(Rahul) #1

What I Wanted to Do

I tried to execute npm dedupe

What Happened Instead

(node:20525) UnhandledPromiseRejectionWarning: TypeError: Cannot read property ‘0’ of undefined
at rmStuff (/usr/local/lib/node_modules/npm/lib/unbuild.js:61:24)
at Array. (/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
(node:20525) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:20525) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Reproduction Steps

Details

The only different thing I have is private registry package.

Logs from npm debug logs
261 info lifecycle undefined~preuninstall: undefined

262 info lifecycle undefined~uninstall: undefined

263 timing npm Completed in 24173ms

264 error cb() never called!

Platform Info

$ npm --versions
6.1.0
$ node -p process.platform
linux
(John Gee) #2

Similar reports:

(Tiger Medina) #3

one of those is my own ticket