My initial settings on Mac
Source: Dev.to
Xcode Command Line Tools
xcode-select --install
Homebrew
-
Download the
.pkginstaller from the Homebrew website and install it. -
Add Homebrew to your system
PATH:eval "$(/opt/homebrew/bin/brew shellenv)" -
Verify the installation:
brew doctorYou should see “Your system is ready to brew.”
Install Core Development Tools
Git
brew install git
(Homebrew’s Git will be added to your PATH.)
Node.js and npm
brew update
brew install node
-
This installs the LTS version of Node (≥ 18) and npm (v9+).
-
Verify the version:
node -v # should be ≥ v20.9 for Next.js npm -v
System Python
macOS includes a system Python (e.g., 3.9.x). Check it with:
which python3
python3 --version
Do not modify the system Python. Instead, use an environment manager such as Miniconda to create isolated Python environments.
Miniconda
-
Download the GUI
.pkginstaller from the Miniconda website. -
Run the installer.
-
Verify the installation:
conda --version
Visual Studio Code
- Download the VS Code installer from the official website (it is a
.appfile). - Open the downloaded file; it will launch the application.
- Drag Visual Studio Code.app to the Applications folder in Finder to install it permanently.