M1 Pro - node, npm, yarn 설치 하기

🧐Luka.Kim.Dev·2022년 3월 17일
1
post-thumbnail

앞세 설치한 Homebrew는 node와 yarn을 설치하기 위해서였다.
이번에는 node, yarn을 설치해 보겠다.

1. node 설치하기

$ 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 설치 확인하기

$ node --version
v17.7.1

3. node 실행

$ node
Welcome to Node.js v17.7.1.
Type ".help" for more information.
>

node를 설치함으로써 npm도 실행 가능합니다.

4. yarn 설치하기

앞서 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 설치 확인하기

$ yarn --version
1.22.17
profile
코드가 내 마음을 읽어서 자동으로 작성되는 그날이 하루 빨리 오길..🧑🏻‍💻

0개의 댓글