2018-05-29 : 10:00
2018-05-27 : 23:17
2018-04-23 : 18:03
2018-04-06 : 14:55
2018-03-24 : 14:41
2018-09-25 : 01:29
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.