🍎

macOS環境構築について

に公開

Xcode Command Line Tools

xcode-select --install

Homebrew

https://brew.sh/

brew install wget

設定チェック

brew doctor

パッケージ定義を最新化

brew list
brew update

VSCode, Chrome

  • caskの定義の中で、VSCodeの実行ファイルに対するシンボリックリンクが自動で作成される
  • そのため、Command PaletteからShell Command: Install code in PATHを実行しなくても、codeコマンドが使用できる
brew install --cask visual-studio-code
brew install --cask google-chrome

Git

  • Homebrewからインストールしたgitを使う
brew install git
which git
/usr/bin/git --version
/usr/local/bin/git --version

GitHub

  • GitHubへSSHできるようにする
ssh -T git@github.com

https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent?platform=mac

https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account

nvm, npm, node

brew install nvm
nvm install --lts
nvm ls
nvm --version
npm --version
node --version
GitHubで編集を提案

Discussion