且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

npm WARN deprecated minimatch@2.0.10:请更新到minimatch 3.0.2或更高版本,以避免RegExp DoS问题

更新时间:2022-05-13 22:15:20

npm update -g minimatch@3.0.2
为我解决了这个问题,没有汗水,让我知道如果不是为你工作。看看你的截图,这是90%+可能修复它,我想。

npm update -g minimatch@3.0.2 Resolved this for me, no sweat, let me know if it doesn't work for you. Looking at your screenshots this is 90%+ likely to fix it, I think.

看起来像npm@2.15.8在几个cordova包中列出,对node-gyp@3.3.1有依赖性,依赖于minimatch@2.0.10

Looks like npm@2.15.8 which is listed in a couple of the cordova packages, has a dependency on node-gyp@3.3.1 which has a dependency on minimatch@2.0.10

这是一个为什么npm是无限疯狂的包管理器的例子。我仍然喜欢现代的JavaScript,但npm是危险的,因为它是有用的,在我看来。

This is an example of why npm is the package manager of infinite madness. I still like modern JavaScript, but npm is as dangerous as it is useful, in my opinion.