It’s a permissions error. You need to prepend the command with sudo, or change ownership of the /usr/local/lib/node_modules/cordova
directory (and any other directories that give EACCES errors).
For example:
sudo chown -R isathish /usr/local/lib/node_modules/cordova/
See these posts for more help:
The following is the error message that I received from the termini, kindly assist: Haryonos-MacBook-Pro:~ haryonoyeo$ npm install -g cordova ionic npm ERR! Error: EACCES, mkdir '/usr/local/lib/node_modules/cordova' npm ERR! { [Error: EACCES,...
I am having trouble installing ionic. MyMac:~ lukeb$ npm install -g cordova ionic /Users/lukeb/.nvm/v0.10.33/bin/cordova -> /Users/lukeb/.nvm/v0.10.33/lib/node_modules/cordova/bin/cordova npm ERR! Error: EACCES, mkdir...
Reading time: 1 mins 🕑
Likes: 5 ❤