Don't use "sudo" with NPM "install"

brylie

Brylie Christopher Oxley

Posted on April 9, 2019

Don't use "sudo" with NPM "install"

Using "sudo" when installing NPM packages may put your computer at risk, by giving untrusted code administrative privileges. Please do not use "sudo" when installing NPM packages.

Instead, use the following instructions to allow NPM to install global packages without administrative privileges:

https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally


Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.

💖 💪 🙅 🚩
brylie
Brylie Christopher Oxley

Posted on April 9, 2019

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related