Skip to content

用brew安装nvm成功了,但是nvm安装node失败了 #3582

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
delbug opened this issue May 7, 2025 · 3 comments
Open

用brew安装nvm成功了,但是nvm安装node失败了 #3582

delbug opened this issue May 7, 2025 · 3 comments
Labels
installing nvm Problems installing nvm itself needs followup We need some info or action from whoever filed this issue/PR.

Comments

@delbug
Copy link

delbug commented May 7, 2025

系统和版本:
macOs 15.14.1
Image

nvm版本:

Image

nvm debug

执行命令:nvm install 14.17.5

报错截图:

Image Image

23 warnings generated.
21 warnings generated.
rm 32d1f7fcac13b1f13e780f5b0601cdd245bcca79.intermediate
make: *** [node] Error 2
nvm: install v14.17.5 failed!

如何安装nvm?

brew install nvm

我直行了哪些步骤

  1. 直行命令:brew install nvm

  2. 执行命令 nvm install 14.17.5

  3. 提示 nvm 不存在

  4. 我在 .zshrc 文件里面输入了以下内容
    Image

  5. 执行命令 nvm install 14.17.5 后就报错了

  6. 我尝试过 卸载和重装nvm没效果,我尝试过把Python版本换到3.9.13 也没效果

@ljharb
Copy link
Member

ljharb commented May 7, 2025

note: nvm is not supported when installed via homebrew. Please remove it, and install it via the official install script in the readme.

Separately, nvm is a sourced shell function, not a binary, and you have to restart your shell (or re-source your profile file) to make it available. After installing it properly, please confirm that your zshrc or zprofile has the three expected "sourcing nvm" lines.

@ljharb ljharb added needs followup We need some info or action from whoever filed this issue/PR. installing nvm Problems installing nvm itself labels May 7, 2025
@KuangPF
Copy link

KuangPF commented May 9, 2025

@ljharb
Copy link
Member

ljharb commented May 9, 2025

ah, yes that's true, it might also be that you need to use Rosetta.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
installing nvm Problems installing nvm itself needs followup We need some info or action from whoever filed this issue/PR.
Projects
None yet
Development

No branches or pull requests

3 participants