Installation overview:
- Show hidden files
- Oh My Zsh
- Xcode and Command Line Tools
- Homebrew
- Node (version manager) and/or asdf (multiple runtime version management)
Show hidden files
defaults write com.apple.Finder AppleShowAllFiles true
killall Finder
Docs: https://ohmyz.sh/
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
- App store: search for "Xcode"
- Apple documentation website.
Install Command Line Tools:
# Already installed?
xcode-select --version
# If not, install:
xcode-select --install
Awesome package manager for macOS. Docs: https://brew.sh/
# Install
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Restart the terminal. Successful? Following command should print a version number.
brew --version
# 'doctor' command helps with potential macOS issues
brew doctor
Docs: nvm, is a node version manager for node.js, which will save us a lot of version troubles in the future. ✨
Pre-check for latest install script.
# Install
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash
# Restart the terminal. Successful? Following command should print a version number.
nvm --version
# macOS 10.15.x and above have the Z Shell (zsh) as default, so nvm source lines should be present in zsh config file `~/.zshrc`, search for the NVM_DIR export: `export NVM_DIR`
# List, install latest node LTS version and set it as default:
nvm ls-remote
# Install v12.16.1, for example:
nvm install 12.16.1
# Use it:
nvm use 12.16.1
# Set it as default
nvm alias default 12.16.1
# node and npm version check
node --version && npm --version
# Will print
v12.16.1
6.13.4
Docs: https://asdf-vm.com/