installing ionic npm ERR! tar.unpack error

后端 未结 4 2183
天命终不由人
天命终不由人 2020-11-28 14:52

while installing ionic npm install -g ionic getting error.

\"enter

Have tried

相关标签:
4条回答
  • 2020-11-28 15:11

    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!

    0 讨论(0)
  • 2020-11-28 15:13

    it is not nessesary to uninstall node...

    just remove the old npm ionic folder

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

    and try again

    npm install -g ionic
    
    0 讨论(0)
  • 2020-11-28 15:23

    For me the answers provided did not work. I got around this problem by installing cordova and ionic at the same time.

    npm install -g cordova ionic
    

    If proxy is preventing this, other things to try are setting the proxy, making http request and disabling strict-ssl. An example of setting proxy is

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

    To make http request only change the config

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

    To disable strict-ssl

    npm config set strict-ssl=false
    

    Also, if you wanted to view the default list of configs type

    npm config ls -l
    

    This will also show what configurations have been overridden.

    0 讨论(0)
  • 2020-11-28 15:36

    Uninstall Node.js and install freshly after done installation run the following command

    npm install -g ionic cordova

    That's it.

    0 讨论(0)
提交回复
热议问题