When dealing with MacOS and Angular, I know that you can install node/npm with Homebrew, and I know that you can use npm install -g @angular/cli
to install Angular globally amongst your node environments.
Setting up a new machine I recently discovered there was an angular-cli
homebrew formula. I am not super familiar with the general architecture of Homebrew and how it works, and what I have not been able to find is any discussion on the benefits of installing it one way or the other.
I typically try to subscribe to a "anything you can install with the main package manager do so", but am curious on the approach here as I'm not really sure the value of this as a brew formula.
What are the practical differences? If any? Disadvantages/advantages of one over the other?
Curiosity points:
- Updating - updating angular CLI now coupled to whether or not there is an updated formula for the update not just a new node package available?
- Install location - I know on other machines I have had to point pycharm to specific globally installed packages, where would it be referenced from?
- Other globally installed packages - If there is not a homebrew formula for some other package that should be globally installed, is it still installed in the same location as the ones managed with Homebrew or is it treated differently?
I know there's lots on how to install Angular CLI, but nothing I could find had this particular discussion/comparison.