源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

NPM 安装cordova时警告:npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to

  • 时间:2020-07-24 02:46 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:NPM 安装cordova时警告:npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to
[b]前言:[/b]  NPM是随同NodeJS一起安装的包管理工具,能解决NodeJS代码部署上的很多问题,常见的使用场景有以下几种: 允许用户从NPM服务器下载别人编写的第三方包到本地使用。 允许用户从NPM服务器下载并安装别人编写的命令行程序到本地使用。 允许用户将自己编写的包或命令行程序上传到NPM服务器供别人使用。 [b]NPM 安装cordova时警告:npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to[/b] 一、问题描述 npm安装cordova时警告: npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue [img]http://files.jb51.net/file_images/article/201612/201612201106218.png[/img] [b]二、解决方法[/b] 升级minimatch到3.0.2 npm update minimatch@3.0.2 npm update -d [img]http://files.jb51.net/file_images/article/201612/201612201106219.png[/img] 升级后依旧报错,只好重装: npm update minimatch npm -v minimatch npm install -g npm@3 [img]http://files.jb51.net/file_images/article/201612/2016122011062110.png[/img] 版本升级到了3.10.8 [img]http://files.jb51.net/file_images/article/201612/2016122011062111.png[/img] 感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部