Skip to content

Latest commit

 

History

History
105 lines (68 loc) · 1.56 KB

setup-mac.md

File metadata and controls

105 lines (68 loc) · 1.56 KB

Setup for macOS

One time development environment setup on macOS

Scripts are bash

Misc

Finder

Show hidden files:

defaults write com.apple.finder AppleShowAllFiles YES

Hold the 'Option/alt' key, then right click on the Finder icon in the dock and click Relaunch

Tools

Homebrew

Install Homebrew:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

bash 5+

macOS comes with outdated version of bash. Install latest version.

brew update
brew install bash

Apple Command Line Tools

xcode-select --install

Nvm

nvm is node.js version manager.

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.4/install.sh | bash

Close and reopen terminal.

Node.js

Install via nvm:

nvm install v18.12.1

Make sure you do not have default node set:

nvm unalias default

Activate node 18.12.1:

nvm use 18.12.1

Configure npm

Configure npm (Node Package Manager) to save versions of packages in packages.json. This way you can have the same stable environment on all development machines:

npm config set save=true
npm config set save-exact=true

eslint

nvm use 18.12.1
npm install --global eslint

GitHub CLI

brew install gh

AWS CLI

cd ~/Downloads
curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
sudo installer -pkg AWSCLIV2.pkg -target /

AWS Authentication

For additional AWS setup see AWS