nvm 安装 node 失败

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.

After this, you can use the installed executable without being in Rosetta 2 shell, i.e. you can use node 15 along with other node versions interchangeably.

posted @ 2022-09-22 17:01  Redchar  阅读(300)  评论(0编辑  收藏  举报