错误:npm WARN已弃用minimatch@2.0.10:请更新到minimatch 3.0.2或更高版本,以避免RegExp DoS问题(Error: npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue)

9454 IT屋

I have this problem during installation of ionic cordova:

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

Please anyone helpme

解决方案

You need to update your minimatch version Follow these steps:

Run this command to update minimatch

$ npm update minimatch

Run this command to check minimatch version

$ npm -v minimatch

If the version is still old one Run this command

$ npm install -g npm@3

Check your version again

$ npm -v minimatch

我在离子cordova的安装过程中遇到这个问题:



  npm WARN不推荐minimatch@2.0.10:请更新为minimatch 3.0.2或更高版本以避免RegExp DoS问题


请任何人帮助


解决方案

您需要更新您的minimatch版本
遵循以下步骤:



命令更新minimatch



  $ npm更新minimatch 


运行此命令以检查最小匹配版本



  $ npm -v minimatch 


如果版本还旧,请运行此命令



  $ npm install -g npm @ 3 


检查您的版本



  $ npm -v minimatch 

本文地址:IT屋 » 错误:npm WARN已弃用minimatch@2.0.10:请更新到minimatch 3.0.2或更高版本,以避免RegExp DoS问题