installing ionic npm ERR! tar.unpack error
I was having same problem on Windows 8 (64 bit)
Solution:
Don't forget to install other dependencies before installing ionic http://ionicframework.com/docs/guide/installation.html
1) Uninstall Node from Control Panel
2) Restart PC
3) Download (MSI Installer) older version of Node from http://nodejs.org/dist/v0.10.38/ or 64bit http://nodejs.org/dist/v0.10.38/x64/
4) Install Node version 0.10.38
5) npm install -g cordova
6) npm install -g ionic
Done!
NPM install -g cordova ionic gives Err -13
You're having issues because you don't have write access to the /usr/local
directory. A couple options to fix this:
Execute the install as root/administrator using sudo
sudo npm install -g cordova ionic
You can change ownership of the /usr/local
directory (and all subdirectories) to the current user, which is usually a fine solution on a single user machine:
sudo chown -R $USER /usr/local
You can change the file permissions on the directory recursively to allow universal write access (not so safe, but still not likely to cause issues)
sudo chmod -R a+w /usr/local
Alternatively, you could change the place where your npm install -g
command installs stuff, though you'll also probably have to mess with the PATH variable as well if you want access to the commands. To change the location where npm installs global modules, enter npm config edit
and then add a line that says
prefix=/path/to/new/location
npm ERR! registry error parsing json - While trying to install Cordova for Ionic Framework in Windows 8
In my case, I had a very old version of npm. Upgrading npm using sudo npm install npm -g
fixed the problem for me. Additionally I also did rm -rf node_modules
and npm cache clean
and npm config set registry "http://registry.npmjs.org/"
I can't install ionic
Try running
npm config set registry https://registry.npmjs.org/
before installing ionic
Related Topics
Onclicklistener - X,Y Location of Event
Android Replace the Current Fragment with Another Fragment
How to Check Internal and External Storage If Exist
Open Android App from Url Using Intent-Filter Not Working
Toast Created in an Intentservice Never Goes Away
Debug Native Code in Android Library
Volley Out of Memory Error, Weird Allocation Attempt
How to Save the Image to Sd Card on Button Click Android
How to Add a Gesture Detector to a View in Android
Android Xml VS Java Layouts Performance
How to Upload File Using Volley Library in Android
How to Stop Other Apps Playing Music from My Current Activity
Does Setwidth(Int Pixels) Use Dip or Px
Missing Contentdescription Attribute on Image' in Xml