Use “npm install -g” without sudo

Use “npm install -g” without sudo

ONLY TESTED ON MAC OS! Getting rid of always prefixing sudo when installing a global npm package is pretty easy. Just two steps are needed.
read more