node

[node] nvm use not working ( 노드 버전 변경 안될때) zsh: bad CPU type in executable: node 에러핸들링

유병각 2022. 7. 5. 10:24

노드의 버전 변경이 안될때 해결법

 

(M1 맥북기준)

 

nvm deactivate

위 명령어를 터미널에 입력하면, 현재 사용하고있는 노드 버전이 deactivate 됨

 

그 후, nvm use "원하는 노드버전" 을 하면 원하는 노드버전으로 변경이됨.

zsh: bad CPU type in executable: node 

 

zsh: bad CPU type in executable: node

I have installed nvm using brew. After that, I installed node version of 16 through nvm and check the current version using node -v to see whether the node is working properly. However, when I inst...

stackoverflow.com

근데 위와 같은 에러가 뜨면, (m1 맥북이면 위 에러가 뜸)

 

softwareupdate --install-rosetta

위명령어를 터미널에 입력하고, 다시한번 nvm use "노드버전" 을 하면 정상적으로 원하는 노드로 변경이됨