Pro-Homebrewのインストール


M 1 Proを購入し、再インストールが必要なものがありました.
1つのコマンドは、糸やnpmなどの端末で使用する必要があります.これを使用するには、Homebrewからインストールする必要があります.
これはHomebrewの取り付けと糸の取り付けに関する記録です.

1.iTerm 2のインストール


まず,基本実装の端末よりも可読性が良いので,使用したiTerm 2はクロムで実装した.

2.Homebrewをインストールするかどうかを確認する

$ which brew
/opt/homebrew/bin/brew (<--- 설치되어 있다면 경로가 표시)
brew not found (<--- 설치되어 있지 않다면 나타남)

既にインストールされているが、再インストールして削除する場合は、アンインストールします。

$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"

3.ホームブリッジのインストール

$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
上記のようにsudoパスワードの入力を要求します.
==> Checking for `sudo` access (which may request your password)...
Password:
途中で娯楽も要求される.
Press RETURN to continue or any other key to abort:
==> /usr/bin/sudo /bin/mkdir -p /opt/homebrew
==> /usr/bin/sudo /usr/sbin/chown root:wheel /opt/homebrew
インストールが完了したら、次のコマンドを入力します.
==> Installation successful!

==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
  https://docs.brew.sh/Analytics
No analytics data has been sent yet (nor will any be during this install run).

==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
  https://github.com/Homebrew/brew#donations

==> Next steps:
- Run these two commands in your terminal to add Homebrew to your PATH:
    echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/{USER_NAME}/.zprofile
    eval "$(/opt/homebrew/bin/brew shellenv)"
- Run brew help to get started
- Further documentation:
    https://docs.brew.sh
2つのコマンドを順番に入力します.
$ echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/luka_kim/.zprofile
$ eval "$(/opt/homebrew/bin/brew shellenv)"

4.インストールとバージョンの再確認

$ which brew
/opt/homebrew/bin/brew
$ brew --version
Homebrew 3.4.2

5.brewの実行

$ brew
Example usage:
  brew search TEXT|/REGEX/
  brew info [FORMULA|CASK...]
  brew install FORMULA|CASK...
  brew update
  brew upgrade [FORMULA|CASK...]
  brew uninstall FORMULA|CASK...
  brew list [FORMULA|CASK...]

Fin