728x90
M1 Mac 에서 nvm 으로 노드 12 버전을 설치해야할 일이 있어서 nvm install 12.14.1
명령어를 실행했습니다.
그런데, 아래와 같이 노드 12 버전이 실패가 되었다고 떴습니다..!
clang: error: no such file or directory: 'CXX=c++'
make[1]: *** [/Users/gimseonjae/.nvm/.cache/src/node-v12.22.9/files/out/Release/obj.target/openssl/deps/openssl/openssl/ssl/bio_ssl.o] Error 1
make[1]: *** Waiting for unfinished jobs....
clang: error: no such file or directory: 'CXX=c++'
make[1]: *** [/Users/gimseonjae/.nvm/.cache/src/node-v12.22.9/files/out/Release/obj.target/openssl/deps/openssl/openssl/ssl/d1_lib.o] Error 1
../deps/v8/src/libsampler/sampler.cc:376:15: warning: unused variable 'mcontext' [-Wunused-variable]
mcontext_t& mcontext = ucontext->uc_mcontext;
^
1 warning generated.
rm 8692b5fcdc082e91b088f8dee7dac4c14038c1fd.intermediate
make: *** [node] Error 2
nvm: install v12.22.9 failed!
구글링해보니 M1 환경에서 로제타로 실행해야만 설치가 된다고 하는데요~
$ arch x86_64 zsh
으로 로제타로 터미널 재실행해준 다음에 nmv install 12.14.1
으로 12버전의 노드를 설치했습니다!
$ nvm install 12.14.1
Downloading and installing node v12.14.1...
Downloading https://nodejs.org/dist/v12.14.1/node-v12.14.1-darwin-x64.tar.xz...
########################################################################################################################################################################################################## 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v12.14.1 (npm v6.13.4)
$ nvm use 12.14.1
Now using node v12.14.1 (npm v6.13.4)
으로 바로 설치가 되었습니다!
댓글