Skip to content

Instantly share code, notes, and snippets.

@vspedr
Created May 11, 2018 19:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vspedr/29b91e73f0cb77c3c6a3cb0599c06565 to your computer and use it in GitHub Desktop.
Save vspedr/29b91e73f0cb77c3c6a3cb0599c06565 to your computer and use it in GitHub Desktop.
Using sudo is a great way to make things happen, but most people neglect to understand everything that happens when sudo is used. Particularly with npm, and npm modules, using sudo can result in things being performed by root which the user doesn't want to have be performed by root, such as file creation or use of protected ports. Basically, the "use sudo" advice falls flat on its face (perhaps after stumbling and staring into the sun for a moment) where nvm/npm/node is concerned. – bschlueter Aug 1 '16 at 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment