zsh: command not found: node lyh@MacBook ~ % brew install node@20 Warning: node@20 20.14.0 is already installed and up-to-date. 原因是node 的可执行文件没有添加到您的 PATH 环境变量中。 解决办法:brew link --overwrite node@20 macos安装nodemacos创建vue项目macOS vue ...
b1anker@B1ankerdeMBP:/usr/local/bin| ⇒ brew switch node@6 6.10.3 Cleaning /usr/local/Cellar/node@6/6.10.3 Opt link created for /usr/local/Cellar/node@6/6.10.3 b1anker@B1ankerdeMBP:/usr/local/bin| ⇒ node -v zsh: command not found: node b1anker@B1ankerdeMBP:/usr/local/bin...
如果找不到,按照安装时控制台的提示添加path liuhongdi@liuhongdideMacBook-Pro Homebrew % node -v zsh: command not found: node liuhongdi@liuhongdideMacBook-Pro Homebrew % /usr/local/opt/node@18/bin/node -v v18.15.0liuhongdi@liuhongdideMacBook-Pro Homebrew %echo'export PATH="/usr/local/opt...