mac M1 使用nvm安装node报错

881 阅读1分钟

clang: error: no such file or directory: 'CXX=c++' 

解决办法: 

For anything under v15, you will need to install node using Rosetta 2 You can do this by running the nvm installation commands inside the Rosetta 2 shell. 

In Terminal

 use arch -x86_64 zsh

 to start a shell under Rosetta 2. Then you can run nvm install v12.

详情参考链接 github.com/nvm-sh/nvm/…