Sudo You $%^&* Snippet!

/ Edit this post / code

Sometimes I run into this issue when running NPM without sudo causes a bunch of warnings. If this happens to you, just type this into your Mac OSX terminal and run npm again and the warnings disappear.

sudo chown -R `whoami` ~/.npm

Eric David Smith

Father / Software Engineer / Musician / Recording Engineer / Navy Veteran / Runner / Javascript / Crypto / Human ETH: 0xa9FFaD2A2cA147F784f4C82Ee6475afb6765A974

Read More