Error: npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

执行npm install 时,提示警告信息:

Error: npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

更新 minimatch 方法如下:

  • 更新命令——

$ npm update minimatch

  • 检查版本——

$ npm -v minimatch

  • 如果版本没有更新成功,执行下面的命令——

$ npm install -g npm@3

  • 再次检查命令——

$ npm -v minimatch

posted @ 2017-05-09 08:48  lishidefengchen  阅读(955)  评论(0编辑  收藏  举报