Apple M1 Development Quick-start
- Command Line Tools
1 | ==> Downloading and installing Homebrew... |
To get rid of the initial git error, install a complete version of Command Line Tools from Apple Developer site.
Validate Command Line Tools:
sudo xcode-select -p
- Homebrew
/bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Curl & wget
brew install curl wget
If you need to have curl first in your PATH, run:
echo ‘export PATH=”/opt/homebrew/opt/curl/bin:$PATH”‘ >> ~/.zshrc
For compilers to find curl you may need to set:
export LDFLAGS=”-L/opt/homebrew/opt/curl/lib”
export CPPFLAGS=”-I/opt/homebrew/opt/curl/include”
- Oh-my-zsh
Extend the default zsh
shell with rich sources of plugins and themes.
- NVM
You should create NVM’s working directory if it doesn’t exist:
mkdir ~/.nvm
Add the following to ~/.zshrc or your desired shell
configuration file:
1 | export NVM_DIR="$HOME/.nvm" |
Apple M1 Development Quick-start