에러
$ brew install corepack
Running `brew update --auto-update`...
Error: Cannot install under Rosetta 2 in ARM default prefix (/opt/homebrew)!
To rerun under ARM use:
arch -arm64 brew install ...
To install under x86_64, install Homebrew into /usr/local.
해결방법
1. yarn을 unlink 해준다.
$ brew unlink yarn
2. arch -arm64 brew install corepack 을 이용해서 설치해준다.
$ arch -arm64 brew install corepack
정상적으로 설치됨 확인
https://yarnpkg.com/getting-started/install
https://github.com/nodejs/corepack
https://formulae.brew.sh/formula/corepack