标签: node.js bash macos homebrew
我在macOS上通过Homebrew卸载了Node,现在当我运行which <anything>时,我收到此错误:
which <anything>
env: node: No such file or directory
我的$PATH环境变量为/Users/ohas/.bin:/Users/ohas/.bin:/Users/ohas/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin。
$PATH
/Users/ohas/.bin:/Users/ohas/.bin:/Users/ohas/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
知道可能导致错误的原因是什么?
答案 0 :(得分:0)
我使用official installer安装了Node,但错误消失了。