npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

`npm dedupe` throwing an error

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


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
$ node -p process.platform

Similar reports:

one of those is my own ticket

Hi all,
Any progress on this?
We’re seeing it on node 10.15.3, npm 6.9.0