Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

`npm install` how to track the packages which issue warnings?

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>

like image 598
dmi3y Avatar asked Mar 31 '16 21:03

dmi3y


1 Answers

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).

like image 60
Kable Avatar answered Sep 21 '22 20:09

Kable