One time development environment setup on macOS
Scripts are
bash
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
Install Homebrew:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
macOS comes with outdated version of bash. Install latest version.
brew update
brew install bash
xcode-select --install
nvm
is node.js version manager.
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.4/install.sh | bash
Close and reopen terminal.
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
(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
nvm use 18.12.1
npm install --global eslint
brew install gh
cd ~/Downloads
curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
sudo installer -pkg AWSCLIV2.pkg -target /
For additional AWS setup see AWS