Simon Gomes
Simon Gomes

Reputation: 383

Cannot install ionic using npm

Please check the below image and give a solution for this, I am stuck, please help.

enter image description here

Upvotes: 1

Views: 1129

Answers (2)

Simon Gomes
Simon Gomes

Reputation: 383

Finally was able to fix the issue and install ionic, so I was hoping I should share it, if anyone having the same issue please check if my steps also works for you.

  1. Turn off Windows Firewall
  2. Turn off any/every Antivirus or windows defender you are running.
  3. Clear npm cache, run - $ npm cache clean
  4. Remove Nodejs
  5. Restart PC
  6. Install latest version of Nodejs
  7. Clear npm cache again, run - $ npm cache clean
  8. [important] First only install cordova, run - $ npm install -g cordova
  9. Then install Ionic, run - $ npm install -g ionic

Hopefully it will work, this how I was able to fix my issue.

Upvotes: 3

Roshan Bharti
Roshan Bharti

Reputation: 616

You have to install Node JS 0.12.6 Version, and after that, use:

$npm install -g cordova ionic

in DOS (cmd). It will install ionic and Cordova.

Upvotes: 0

Related Questions