12

Is any easy way in npm to track from which packages these kind of dependency warnings came from? Packages in the warnings is for sure not the top level ones.

I'm currently on npm v3.6.0 (node 5.6.0).

Warnings when <code>npm install</code>

dmi3y
  • 3,302
  • 2
  • 20
  • 32

1 Answers1

10

Running npm list in your project directory will give you a dependency tree, and a simple text search for the deprecated packages will indicate where they came from.

As a workaround to deprecation issues, you could use npm-shrinkwrap (example usage).

Community
  • 1
  • 1
Kable
  • 990
  • 7
  • 18
  • 5
    Thanks, `npm list` is probably closest thing, although I was hoping to have something like `npm list --warnings` which filter out toplevel packages which are depend on packages that throwing warnings and indicates this packages... – dmi3y Apr 01 '16 at 06:45