Installation of ionic npm ERR! Tar.unpack error

when installing ionic npm installation -g ion error getting.

enter image description here

Have tried: -

  • npm cache clean 2. Run cli as administrator 3. restarted the system, but the error remained the same.

Poorly stocked.

+6
source share
4 answers

I had the same problem on Windows 8 (64 bit)

Decision:

Remember to install other dependencies before installing ionic http://ionicframework.com/docs/guide/installation.html

1) Remove Node from Control Panel

2) Restart your computer

3) Download (MSI Installer) an 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!

+16
source

no need to uninstall node ...

just delete the old npm ion folder

...AppData\Roaming\npm\node_modules\ionic 

and try again

 npm install -g ionic 
0
source

For me, the answers provided did not help. I ran into this problem, installing both a cordon and an ionic one.

 npm install -g cordova ionic 

If the proxy server prevents this, other attempts are made to try installing the proxy server by making an http request and disabling strict-ssl. Example proxy server installation -

 npm config set proxy=http://username: password@domain :port/ 

To make an HTTP request, change the configuration

 npm config set registry=http://registry.npmjs.org/ 

To disable strict-ssl

 npm config set strict-ssl=false 

In addition, if you want to view a list of default configurations, type

 npm config ls -l 

It will also show which configurations have been overridden.

0
source

Remove Node.js and install only after installation is complete, run the following command

npm install -g ionic cordova

What is it.

0
source

Source: https://habr.com/ru/post/989613/


All Articles