npm WARN deprecated minimatch@2.0.10:请更新到minimatch 3.0.2或更高版本,以避免RegExp DoS问题 [英] npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

查看:303
本文介绍了npm WARN deprecated minimatch@2.0.10:请更新到minimatch 3.0.2或更高版本,以避免RegExp DoS问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

安装cordova时,我收到警告。如何解决?

I'm getting below warning while installing cordova. How I can resolve it?

< img src =https://i.stack.imgur.com/U5aLM.pngalt =enter image description here>
请看图片,以了解当我跑下面的命令时发生了什么:

Please see the image to know what happened when i ran below commands :

npm update minimatch@3.0.2

npm update -d

< img src =https://i.stack.imgur.com/v4x6n.pngalt =enter image description here>

推荐答案

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.

这篇关于npm WARN deprecated minimatch@2.0.10:请更新到minimatch 3.0.2或更高版本,以避免RegExp DoS问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆