I was setting up a Mac today for PhoneGap development and I ran into this error message while attempting to install Ripple:
- npm ERR! Please try running this command again as root/Administrator
The solution is to change ownership of everything in /usr/local to the current user via the terminal:
- sudo chown -R $USER /usr/local
You’ll be asked for your password after which the relevant files will be changed. As can be seen in the following image I succesfully executed the command and thereafter didnt have any issues installing Ripple.