Using ‘sudo’ with NPM is a no-no, as it can cause all kinds of havoc with file permissions. You can specify a default directory for globally installed packages and thus absolve yourself of sudo chaos. Continue reading
Configure NPM for global user without sudo on Mac OS
Reply