Reputation: 8945
I am trying to install Ionic 2 on a OSx machine. I did install Node.js
. When I run the following:
$ npm install -g ionic cordova
I get this error:
If anyone can assist, I would appreciate it.
UPDATE:
Downgraded Node to v6.9.1 and still get the same error:
UPDATE
As suggested below, I tried:
npm cache clean
But still get the same error:
UPDATE
If I try install a specific version, I get the following error:
sudo npm install -g [email protected] cordova
Upvotes: 0
Views: 446
Reputation: 7724
to install ionic in mac
you have to install nodejs .
to install ionic as per the official doc if you are using linux or mac you should use sudo
command
try
sudo npm install -g ionic cordova
note
your npm version should be greater then 3.x
Upvotes: 1
Reputation: 1
After downgrading your node.js clean npm cache.
npm cache clean
and try the installation again
Upvotes: 0
Reputation: 1450
that version of node its the current so maybe its nos stable at all. I recommend to instal NVM (node version manager) from here this is like a "sand-box" where you have all node version you want and can switch between them.
You only need to run nvm install 5.11.0
and nvm will download that node version for you. Then to use a specific node version you need to run nvm use 5.11.0
and thats all.
I recommend to install 5.11.0 for example, its the node version that im using atm and its working fine with ionic2 RC3.
Upvotes: 0