npm WARN弃用minimatch@2.0.10(和minimatch@0.2.14)请更新到minimatch 3.0.2或更高版本以避免RegExp DoS问题

时间:2016-09-18 19:05:15

标签: cordova npm phonegap-plugins phonegap-cli

我在安装phonegap cli时遇到警告(在Windows 7 -64bit上)。我首先安装了phonegap桌面,然后安装了node.js(npm -v => 2.15.9),当我使用" npm install -g phonegap "命令代码,我收到了以下警告。

有没有人能告诉我如何修复警告?我的目标是通过使用phonegap cli来利用phonegap插件。提前谢谢。

安装phonegap cli时出现警告:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\smith>npm install -g phonegap
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 lodash@1.0.2: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls g
raceful-fs' to find it in the tree.
C:\Users\smith\AppData\Roaming\npm\phonegap -> C:\Users\smith\AppData\Roaming\npm\node_modules\phonegap\bin\phonegap.js
phonegap@6.3.2 C:\Users\smith\AppData\Roaming\npm\node_modules\phonegap
├── opener@1.4.1
├── pluralize@0.0.4
├── colors@0.6.0-1
├── semver@1.1.0
├── minimist@0.1.0
├── qrcode-terminal@0.9.4
├── shelljs@0.1.4
├── update-notifier@0.6.3 (is-npm@1.0.0, semver-diff@2.1.0, chalk@1.1.3, boxen@0.3.1, configstore@2.1.0, latest-version@2.0.0)
├── prompt@0.2.11 (revalidator@0.1.8, pkginfo@0.4.0, read@1.0.7, winston@0.6.2, utile@0.2.1)
├── phonegap-build@0.10.0 (colors@0.6.2, qrcode-terminal@0.8.0, optimist@0.3.7, shelljs@0.0.9, phonegap-build-api@0.4.0)
├── insight@0.8.2 (object-assign@4.1.0, async@1.5.2, tough-cookie@2.3.1, node-uuid@1.4.7, lodash.debounce@3.1.1, chalk@1.1.3, os-name@1.0.3, configstore@1.4.0, request@2.75.0,
 inquirer@0.10.1)
├── connect-phonegap@0.23.0 (home-dir@0.1.2, ip@0.3.1, connect-inject@0.3.2, adm-zip@0.4.7, request-progress@0.3.1, http-proxy@1.8.1, shelljs@0.2.6, walkdir@0.0.11, useragent@
2.0.8, request@2.33.0, node-static@0.7.0, gaze@0.4.3, socket.io@1.4.6, tar@0.1.19, localtunnel@1.3.0, connect@2.12.0, archiver@0.14.3)
└── cordova@6.1.1 (underscore@1.7.0, q@1.0.1, ansi@0.3.1, nopt@3.0.1, update-notifier@0.5.0, cordova-common@1.4.1, cordova-lib@6.1.1)

C:\Users\smith>

0 个答案:

没有答案