Npm mac6/20/2023 ![]() The rest of this post is here in case you are interested in what I used to do. Then we use the npm config command to tell npm where we want them. Then create your own folder for the global npm packages (I made mine ~/.npm-packages). The keys are to install Node.js from the Node web site. it's been 3+ years since I wrote this post, so it's great to see progress! Also, do you really want to be using `sudo` to install npm packages?Īfter discussing this with Tierney Cyren, there are good reasons to use the official Node.js install and (awesomely) there are now easier ways to avoid the sudo hell. ![]() 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. When running npm and node, you may find yourself getting permission errors that ultimately lead you to using `sudo` in your commands.
0 Comments
Leave a Reply. |