This is a guide for new MacBook users to set up their devices for development purposes.
Homebrew is a free and open-source software package management system that simplifies the installation of software on Apple’s operating system, macOS, as well as Linux. It is the most popular package manager for macOS, it helps install and manage different applications and software.
Visit their website **https://brew.sh/**
Copy the command from there and run it in your terminal
*/bin/bash -c “$(curl -fsSL <https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh>)"*
Warning: /opt/homebrew/bin is not in your PATH, usually, we get this warning while the installation. It means that we need to add path for brew in the terminal config file
Use command giving below the warning to add the path in .zprofile
‘eval “$(/opt/homebrew/bin/brew shellenv)”’ >> /Users/kartik/.zprofile eval “$(/opt/homebrew/bin/brew shellenv)”
or add export PATH=/opt/homebrew/bin:$PATH line in .zprofile file and run source ~/.zprofile or restart the terminal
Visit their website https://brew.sh/ to find install applications on your device eg. brew install --cask google-chrome
Check by running the command brew -v
As the name suggests Node version manager helps install and use any specific version of Node.
open ~/.zprofileexport NVM_DIR="$HOME/.nvm" . "/opt/homebrew/opt/nvm/nvm.sh"source ~/.zprofile or restart the terminalnvm -v