Homebrew
About 405 wordsAbout 1 min
2026-05-29
đ What is Homebrew
Note
Homebrew The Missing Package Manager for macOS (or Linux)
đē Install Homebrew Apple Silicon
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"â Check Homebrew status
# check Homebrew version
$ brew --version
# check your system for potential problems.
$ brew doctorâ ī¸ Fix Homebrew Apple Silicon
If the terminal displays brew: command not found, it usually indicates that the Homebrew environment variables are not configured correctly or have been corrupted.
You can verify whether the Homebrew path is included in your PATH by running:
$ echo $PATH | grep -E "/opt/homebrew/(bin|sbin)"If no output is returned, it means the Homebrew path has not been added to PATH. You can configure it with the following commands:
$ echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zshrc
$ source ~/.zshrcđĻ Common Packages
1. Git
Git is a distributed version control system(VCS) used to track changes in files and support collaborative software development.
$ brew install git2. nvm
nvm is a version manager for node.js, designed to be installed per-user, and invoked per-shell.
Click to see more
Install
$ brew install nvmConfigure
Now add these lines to your
~/.bashrc, ~/.profile, or ~/.zshrcfile to have it automatically sourced upon login: (you may have to add to more than one of the above files)export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completionUsage
# check NVM version $ nvm --version # check Node.js version $ nvm current # list available Node.js versions $ nvm ls-remote # list installed Node.js versions $ nvm list # install a specific version $ nvm install 22.22.3 # install the latest LTS version $ nvm install --lts # uninstall a specific version $ nvm uninstall 24 # use a specific version $ nvm use 22.22.3
3. Pnpm
Pnpm is a fast and efficient package manager for Node.js that saves disk space through a shared dependency store.
$ brew install pnpm4. Python
Python is a programming language that lets you work quickly and integrate systems more effectively.
$ brew install [email protected]Changelog
Copyright
Copyright Ownership:Emirio Bomb
License under:Attribution 4.0 International (CC-BY-4.0)
