Resolving EACCES permissions errors when installing packages globally | npm Docs

Documentation for the npm registry, website, and command-line interface