Tuesday, August 8, 2017

[node.js][Resolved] npm warn deprecated minimatch please update to minimatch

Error message


npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher
 to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher
 to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail o
n node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible
. Use 'npm ls graceful-fs' to find it in the tree.
example1@1.0.0 C:\xampp\htdocs\test\example

Step 1

Visit https://www.npmjs.com/package/minimatch check latest version, mark it down (latest is 3.0.4 right now):

Step 2

Run this command to update minimatch version:
npm update -g minimatch@3.0.4

Reference

https://www.npmjs.com/package/minimatch
https://stackoverflow.com/questions/38046392/npm-warn-deprecated-minimatch2-0-10-please-update-to-minimatch-3-0-2-or-higher/38687761

No comments :

Post a Comment