2018-12-17 : 15:43
2018-12-06 : 10:53
2018-12-05 : 10:00
2018-12-04 : 15:14
2018-11-30 : 17:00
2019-02-18 : 01:23
When running npm and node, you may find yourself getting permission errors that ultimately lead you to using `sudo` in your commands.
While this helps get around the issue in the short-term, it also places stricter permissions on those installs and it becomes a slippery slope where soon you may need sudo for more than you bargained for. Also, do you really want to be using `sudo` to install npm packages?
First, we want to use the official Node.js install. I mean, its official, right? And if we don’t trust the Node folks with installing Node, then, well, what are we doing here anyway?
Next we create a folder for the global npm packages. I made mine
Then we use the
npm config command to tell npm where we want them.