2018-11-19 : 13:59
2018-11-16 : 10:00
2018-11-15 : 19:25
2018-11-15 : 16:01
2018-11-15 : 13:23
2018-11-20 : 11:04
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.