首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >npm警告废弃的minimatch@2.0.10:请更新到Minimect3.0.2

npm警告废弃的minimatch@2.0.10:请更新到Minimect3.0.2
EN

Stack Overflow用户
提问于 2016-07-04 15:47:45
回答 7查看 15.8K关注 0票数 2
代码语言:javascript
复制
$ npm update minimatch@3.0.2

$ npm update -d
npm info it worked if it ends with ok
npm info using npm@2.11.3
npm info using node@v0.12.7
npm info attempt registry request try #1 at 5:33:55 PM
npm http request GET https://registry.npmjs.org/jshint
npm http 200 https://registry.npmjs.org/jshint
npm info ok


$ npm install jshint
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.3.0: Please update to minimatch 3.0.2 or higher                                                                                                                 to avoid a RegExp DoS issue
jshint@2.9.2 node_modules\jshint
├── strip-json-comments@1.0.4
├── exit@0.1.2
├── shelljs@0.3.0
├── console-browserify@1.1.0 (date-now@0.1.4)
├── lodash@3.7.0
├── minimatch@2.0.10 (brace-expansion@1.1.5)
├── htmlparser2@3.8.3 (domelementtype@1.3.0, entities@1.0.0, domhandler@2.3.0, d                                                                                                                omutils@1.5.1, readable-stream@1.1.14)
└── cli@0.6.6 (glob@3.2.11)
EN

回答 7

Stack Overflow用户

回答已采纳

发布于 2016-12-13 09:19:16

抱歉迟了回复..。

代码语言:javascript
复制
 sudo npm install 

尝试this..this为我安装npm

要更新使用这个..。

代码语言:javascript
复制
sudo npm install -g npm@3
票数 1
EN

Stack Overflow用户

发布于 2017-01-27 12:32:41

安装-g minimatch@3.0.2

尝试this....Should工作

票数 5
EN

Stack Overflow用户

发布于 2016-07-20 16:07:16

试试这个(用于OSX)

进入终端 sudo chown -R $USER /usr/local

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/38188466

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档