ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

bug: cannot install ionic

Open nehmeroumani opened this issue 11 years ago • 4 comments

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

nehmeroumani avatar Sep 06 '15 09:09 nehmeroumani

Hmm this looks like an error on npms side.

npm ERR! /Users/nehme/npm-debug.log

What does that log file say?

mhartington avatar Sep 06 '15 13:09 mhartington

Same problem on Linux, Ubuntu 15.04, node installed via NVM.

Here is output from npm-debug.log https://gist.github.com/camabeh/10d99819312d90851c3f

max-fabertech avatar Sep 20 '15 11:09 max-fabertech

Solution

Follow the steps

  1. Install all necessary dependencies. http://ionicframework.com/docs/guide/installation.html
  2. Uninstall node.js from PC if already installed
  3. Restart PC
  4. 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
  5. Right-click Command prompt, and then click Run as administrator.
  6. Install Cordova using the command: npm install -g cordova
  7. Finally install Ionic Framework using the command: npm install -g ionic
  8. Reinstall nod.js http://nodejs.org/dist/v0.12.7/ for x86 or http://nodejs.org/dist/v0.12.7/x64/ for x64

Done!

bineeshmvarghese avatar Sep 26 '15 17:09 bineeshmvarghese

Closing as there has been no reply from the original poster.

mhartington avatar Oct 22 '15 16:10 mhartington