简体   繁体   English

`npm install`如何跟踪发出警告的包?

[英]`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? npm是否有任何简单的方法来跟踪这些依赖性警告来自哪些软件包? Packages in the warnings is for sure not the top level ones. 警告中的包肯定不是顶级的。

I'm currently on npm v3.6.0 (node 5.6.0). 我目前正在使用npm v3.6.0(节点5.6.0)。

<code> npm install </ code>时的警告

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. 在项目目录中运行npm list将为您提供一个依赖关系树,对已弃用的包进行简单的文本搜索将指示它们的来源。

As a workaround to deprecation issues, you could use npm-shrinkwrap ( example usage ). 作为弃用问题的解决方法,您可以使用npm-shrinkwrap( 示例用法 )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM