M2 칩 brew로 다운로드한 nvm node 예전 버전 설치오류 해결

BellBoy·2023년 5월 15일
0

18

it wasn't an issue while i was trying to install node 12.X.X but below that it was a big pain so i followed below steps and it worked for me

Uninstalled nvm if it’s already installed using Homebrew.

brew uninstall nvm
brew cleanup
Install Rosetta

softwareupdate --install-rosetta
Make terminal/iTerm2 to open in Rosetta mode

got to Application (-> utilities) -> right click on terminal app -> get Info -> Select "Open using Rosetta" -> Restart Terminal

In Terminal run a command

arch -x86_64 zsh
Make sure machine has .zshrc file if not just create one

cd ~
touch .zshrc
Install NVM

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
And it should add the below piece of code to .zshrc

Restart the terminal and check if nvm is installed successfully by running

nvm -v
Then install Node with nvm as usual

nvm install 10

profile
리액트러버

0개의 댓글