$ npm install -g cordova
Result:
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
/usr/local/bin/cordova -> /usr/local/lib/node_modules/cordova/bin/cordova
cordova@6.3.1 /usr/local/lib/node_modules/cordova
├── underscore@1.7.0
├── q@1.0.1
├── nopt@3.0.1 (abbrev@1.0.9)
├── update-notifier@0.5.0 (is-npm@1.0.0, semver-diff@2.1.0, string-length@1.0.1, chalk@1.1.3, repeating@1.1.3, configstore@1.4.0, latest-version@1.0.1)
├── cordova-common@1.4.1 (cordova-registry-mapper@1.1.15, unorm@1.4.1, underscore@1.8.3, q@1.4.1, semver@5.3.0, ansi@0.3.1, osenv@0.1.3, shelljs@0.5.3, bplist-parser@0.1.1, glob@5.0.15, minimatch@3.0.3, elementtree@0.1.6, plist@1.2.0)
├── insight@0.8.3 (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, configstore@1.4.0, os-name@1.0.3, inquirer@0.10.1, request@2.74.0)
└── cordova-lib@6.3.1 (valid-identifier@0.0.1, opener@1.4.1, cordova-registry-mapper@1.1.15, unorm@1.3.3, properties-parser@0.2.3, nopt@3.0.6, semver@4.3.6, dep-graph@1.1.0, shelljs@0.3.0, glob@5.0.15, elementtree@0.1.6, request@2.47.0, cordova-serve@1.0.0, cordova-app-hello-world@3.10.0, aliasify@1.9.0, xcode@0.8.9, tar@1.0.2, init-package-json@1.9.4, cordova-fetch@1.0.1, plist@1.2.0, cordova-js@4.1.4, npm@2.15.11)
Command:
$ cordova --version
Result:
? May Cordova anonymously report usage statistics to improve the tool over time? Yes
Thanks for opting into telemetry to help us improve cordova.
6.3.1