node、npm、および糸の取り付け


最初の3つの設定のHomebrewは、ノードと糸を設定するためです.
今回はNodeとガーゼをセットします

1.ノードのインストール

$ brew install node
==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
  https://github.com/Homebrew/brew#donations
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
Updated 3 formulae.
Running `brew update --preinstall`...

2.ノードのインストールの検証

$ node --version
v17.7.1

3.運転ノード

$ node
Welcome to Node.js v17.7.1.
Type ".help" for more information.
>
nodeをインストールすることでnpmも実行できます.

4.糸の設定


以前にnodeがインストールされていたので、nodeのインストールを除外するコードを含める必要があります」--ignore-dependencies'
$ brew install yarn --ignore-dependencies
Warning: `--ignore-dependencies` is an unsupported Homebrew developer flag!
Adjust your PATH to put any preferred versions of applications earlier in the
PATH rather than using this unsupported flag!

5.糸の取り付けを確認する

$ yarn --version
1.22.17