It’ll help you resolve your issue of trying to install a package globally but getting an EACCES error.
Also, as a side note, if you are using npm5, I would definitely recommend downgrading to npm@4.6.1. To this day, npm5 seems to be the cause of several issues.