npm Community Forum (Archive)

The npm community forum has been discontinued.

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

"npm list errors on 5.6.0 with optional dependencies not installed "

What I Wanted to Do

Run npm list without any errors

What Happened Instead

It appears that transitive dependencies from optional dependencies result in “missing” errors when running npm list.

Reproduction Steps

Given a package.json:

  "dependencies": {
    "chokidar": "1.7.0"


npm install
npm list


There is a past github issue that dives in much better than I can explain/understand -

Platform Info

$ npm --versions
$ node -p process.platform
$ node --version

Seems to be another case of this one:

Solution, waiting to be merged: