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

后端 未结 6 1155
余生分开走
余生分开走 2020-12-15 16:59

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

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

np

6条回答
  •  不思量自难忘°
    2020-12-15 17:44

    I got this message when I was trying to install ember-cli and solved by typing following command:

    npm install -g npm

    The command basically will update your npm and hope it will solve your problem too. :)

    UPDATED:

    But:

    Note that as it stands if anyone runs npm install from a cloned version of your repository they will end up with the old, vulnerable version of minimatch and will see the error message warning them of a vulnerability.

    So you need to run the above command again.

提交回复
热议问题