bug: cannot install ionic
Type: bug
Platform: desktop browser
npm ERR! tar.unpack untar error /tmp/npm-933-47afcc08/registry.npmjs.org/npm/-/npm-2.1.3.tgz npm ERR! Darwin 14.5.0 npm ERR! argv "node" "/usr/local/bin/npm" "install" "-g" "ionic" "--registry" "http://registry.npmjs.org" npm ERR! node v0.12.7 npm ERR! npm v2.14.1
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/nehme/npm-debug.log
Hmm this looks like an error on npms side.
npm ERR! /Users/nehme/npm-debug.log
What does that log file say?
Same problem on Linux, Ubuntu 15.04, node installed via NVM.
Here is output from npm-debug.log
https://gist.github.com/camabeh/10d99819312d90851c3f
Solution
Follow the steps
- Install all necessary dependencies. http://ionicframework.com/docs/guide/installation.html
- Uninstall node.js from PC if already installed
- Restart PC
- Download and Install node.js (MSI Installer) from http://nodejs.org/dist/v0.10.38/ for x86 or http://nodejs.org/dist/v0.10.38/x64/ for x64
- Right-click Command prompt, and then click Run as administrator.
- Install Cordova using the command: npm install -g cordova
- Finally install Ionic Framework using the command: npm install -g ionic
- Reinstall nod.js http://nodejs.org/dist/v0.12.7/ for x86 or http://nodejs.org/dist/v0.12.7/x64/ for x64
Done!
Closing as there has been no reply from the original poster.