Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

I have this problem during installation of ionic cordova:

npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

Please anyone helpme

like image 883
M Hussain Afridi Avatar asked Jul 08 '16 12:07

M Hussain Afridi


3 Answers

Here, I worked in redux-Saga and try to install npm in my directory. At that time I found this error. I have solved this error by below command,

Run this command in cmd:

   npm install browserify babelify babel-preset-env
like image 179
Yogesh Borad Avatar answered Oct 11 '22 09:10

Yogesh Borad


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
like image 42
PHP Worm... Avatar answered Oct 11 '22 07:10

PHP Worm...


I fixed this error by deinstalling nodejs v4.x (64-bit) and installing the latest nodejs v6.3.0 (32-bit). after that i installed cordova with 'npm install -g cordova' I use a windows machine. I hope this helps anyone :-)

Before that i deleted all my node_modules npm and npm-cache folders in my home directory and appdata -> roaming directory

like image 41
code1x1.de Avatar answered Oct 11 '22 09:10

code1x1.de