How to use npm global without sudo on OSX

added by Paul Wheeler
12/30/2014 1:52:34 PM

1374 Views

When running npm and node, you may find yourself getting permission errors that ultimately lead you to using sudo in your commands. While this helps get around the issue in the short-term, it also places stricter permissions on those installs and it becomes a slippery slope where soon you may need sudo for more than you bargained for. Also, do you really want to be using sudo to install npm packages?


0 comments