Here’s what I did:
sudo npm install -g cordova ionic
Password:
npm WARN deprecated node-uuid@1.4.7: use uuid module instead
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 minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
⸨ ░░░░░░░░░░░░⸩ ⠙ fetchMetadata: sill resolveWithNewModule valid-identifier@0.0.1 checking installable status
⸨ ░░░░░░░░░░░░⸩ ⠸ fetchMetadata: sill resolveWithNewModule valid-identifier@0.0.1 checking installable status
⸨ ░░░░░░░░░░░░⸩ ⠸ fetchMetadata: sill resolveWithNewModule valid-identifier@0.0.1 checking installable status
⸨ ░░░░░░░░░░░░⸩ ⠦ fetchMetadata: sill resolveWithNewModule valid-identifier@0.0.1 checking installable status
npm ERR! Darwin 16.4.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "cordova" "ionic"
npm ERR! node v6.10.0
npm ERR! npm v3.10.10
npm ERR! shasum check failed for /tmp/npm-833-729b35da/registry.npmjs.org/cordova-app-hello-world/-/cordova-app-hello-world-3.10.0.tgz
npm ERR! Expected: e3825fc6ca950090a6a37437fcfb88c1622fd80e
npm ERR! Actual: e53efe8eb96f92e732320efba4905b8a1859d0e4
npm ERR! From: https://registry.npmjs.org/cordova-app-hello-world/-/cordova-app-hello-world-3.10.0.tgz
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
The log:
49140 verbose stack From: https://registry.npmjs.org/cordova-app-hello-world/-/cordova-app-hello-world-3.10.0.tgz
49140 verbose stack at /usr/local/lib/node_modules/npm/node_modules/sha/index.js:25:8
49140 verbose stack at ReadStream.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/sha/index.js:72:7)
49140 verbose stack at emitNone (events.js:91:20)
49140 verbose stack at ReadStream.emit (events.js:185:7)
49140 verbose stack at endReadableNT (_stream_readable.js:974:12)
49140 verbose stack at _combinedTickCallback (internal/process/next_tick.js:74:11)
49140 verbose stack at process._tickCallback (internal/process/next_tick.js:98:9)
49141 verbose cwd /Users/thomas/Documents
49142 error Darwin 16.4.0
49143 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "cordova" "ionic"
49144 error node v6.10.0
49145 error npm v3.10.10
49146 error shasum check failed for /tmp/npm-833-729b35da/registry.npmjs.org/cordova-app-hello-world/-/cordova-app-hello-world-3.10.0.tgz
49146 error Expected: e3825fc6ca950090a6a37437fcfb88c1622fd80e
49146 error Actual: e53efe8eb96f92e732320efba4905b8a1859d0e4
49146 error From: https://registry.npmjs.org/cordova-app-hello-world/-/cordova-app-hello-world-3.10.0.tgz
49147 error If you need help, you may report this error at:
49147 error https://github.com/npm/npm/issues
49148 verbose exit [ 1, true ]