Error Installing :(


#1

Here’s what my terminal looks like after 2 hours of digging around and still unable to get it going :frowning:

James-MacBook-Pro:~ james$ npm cache clean
James-MacBook-Pro:~ james$ sudo npm install -g cordova ionic
Password:
npm WARN engine cordova-js@4.0.0: wanted: {"node":"~0.10.x"} (current: {"node":"0.12.5","npm":"2.11.2"})
npm WARN engine npm@1.3.4: wanted: {"node":">=0.6","npm":"1"} (current: {"node":"0.12.5","npm":"2.11.2"})
npm WARN engine xmlbuilder@2.2.1: wanted: {"node":"0.8.x || 0.10.x"} (current: {"node":"0.12.5","npm":"2.11.2"})
npm WARN installMany normalize-package-data was bundled with npm@1.3.4, but bundled package wasn't found in unpacked tree
npm WARN engine xmlbuilder@2.2.1: wanted: {"node":"0.8.x || 0.10.x"} (current: {"node":"0.12.5","npm":"2.11.2"})
npm ERR! registry error parsing json
npm ERR! registry error parsing json
npm ERR! registry error parsing json
npm ERR! tar.unpack untar error /tmp/npm-814-cf8cb2e5/registry.npmjs.org/tough-cookie/-/tough-cookie-2.0.0.tgz
npm ERR! tar.unpack untar error /tmp/npm-814-cf8cb2e5/registry.npmjs.org/hawk/-/hawk-1.1.1.tgz
npm ERR! registry error parsing json
npm ERR! tar.unpack untar error /tmp/npm-814-cf8cb2e5/registry.npmjs.org/pegjs/-/pegjs-0.6.2.tgz
npm ERR! Darwin 14.4.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" "cordova" "ionic"
npm ERR! node v0.12.5
npm ERR! npm  v2.11.2

npm ERR! unexpected eof
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:
npm ERR!     /Users/niumai/npm-debug.log
James-MacBook-Pro:~ james$ 

Anybody with good knowledge of where I’m going wrong?!