How to deal with deprecation warnings from npm

后端 未结 1 686
無奈伤痛
無奈伤痛 2021-01-15 23:03

Nearly all the time I use npm to install a package, I get a warning like:

npm WARN deprecated minimatch@1.0.0: Please update to minimatch 3.0.2          


        
相关标签:
1条回答
  • 2021-01-15 23:27

    If you're not depending directly on the deprecated packages, you're probably not accomplishing anything by installing them directly. Whichever package depends on it is the one that needs to update its dependencies, and so on until you reach the package you're developing. Essentially: if it's important (e.g. a security problem), notify the package maintainers; if not, ignore the deprecation warning.

    0 讨论(0)
提交回复
热议问题