小编Joh*_*doe的帖子

如何在 Mac 上安装 NVM

我尝试使用以下命令在 Mac 上安装 NVM:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
Run Code Online (Sandbox Code Playgroud)

但是,我收到一条错误消息:“语法错误接近意外`(”。下面提供了有关错误日志的更多详细信息。我做错了什么?

VFZ:repo2022 john$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  4934  100  4934    0     0    686      0  0:00:07  0:00:07 --:--:--   686
bash: line 1: syntax error near unexpected token `('
bash: line 1: `<!-- Copyright (C) 2016 Intel Corporation. All rights reserved. -->'
VFZ:repo2022 john$ 
Run Code Online (Sandbox Code Playgroud)

系统-MAC

macos node.js nvm

4
推荐指数
1
解决办法
2万
查看次数

标签 统计

macos ×1

node.js ×1

nvm ×1