如何用 Homebrew 的节点替换我的节点版本?

How do I replace my version of node with Homebrew's node?

我安装了这个版本的节点

localhost:pplsi.accounts davea$ node -v
v10.16.3
localhost:mydir davea$ which node
/usr/local/bin/node

我更喜欢使用自制版本,所以我尝试了

localhost:mydir davea$ brew upgrade node
Updating Homebrew...
Auto packing the repository in background for optimum performance.
See "git help gc" for manual housekeeping.
Auto packing the repository in background for optimum performance.
See "git help gc" for manual housekeeping.
==> Auto-updated Homebrew!
Updated 3 taps (phinze/cask, homebrew/core and homebrew/cask).
==> Updated Formulae
rabbitmq

Error: node 12.10.0 already installed

但我的节点仍然显示为旧版本

localhost:pplsi.accounts davea$ node -v
v10.16.3

如何用安装的自制软件替换我的节点?[​​=13=]

可能是 brew 安装的节点不在路径中,将 /usr/local/bin 文件夹添加到路径中并尝试。

export PATH="/usr/local/bin:$PATH"