当我运行nvm install 10时,我得到这个错误。我已经检查了我已经安装了python3。我也可以在nvm安装16和更高版本而没有问题。
Downloading and installing node v10.24.1...
Downloading https://nodejs.org/dist/v10.24.1/node-v10.24.1-darwin-arm64.tar.xz...
curl: (22) The requested URL returned error: 404
Binary download from https://nodejs.org/dist/v10.24.1/node-v10.24.1-darwin-arm64.tar.xz failed, trying source.
grep: /Users/sadeeb/.nvm/.cache/bin/node-v10.24.1-darwin-arm64/node-v10.24.1-darwin-arm64.tar.xz: No such file or directory
Provided file to checksum does not exist.
Binary download failed, trying source.
Clang v3.5+ detected! CC or CXX not specified, will use Clang as C/C++ compiler!
Local cache found: ${NVM_DIR}/.cache/src/node-v10.24.1/node-v10.24.1.tar.xz
Checksums match! Using existing downloaded archive ${NVM_DIR}/.cache/src/node-v10.24.1/node-v10.24.1.tar.xz
$>./configure --prefix=/Users/sadeeb/.nvm/versions/node/v10.24.1 <
./configure: line 3: exec: python: not found
nvm: install v10.24.1 failed!
我重新安装了homebrew,重新安装了python,再次检查了NVM的版本是最新的,并运行了GPT提供的故障排除。似乎我无法得到这个版本的节点运行。我还指定了安装10.24.1,以及指定的版本10.18.1。
在Rosetta2中打开终端,因为旧的node v15版本不能安装在基于arm的mac上,所以请遵循以下步骤进入应用程序->右键点击终端应用->获取信息->选择"使用Rosetta"→重启终端在Terminal中,写入->Arch -x86_64 zsh
现在按照下面的指南安装NVM