不能"酿造链接"是一个没有链接的桶

Jor*_*ein 21 homebrew node.js

$: which node
$: node
-bash: node: command not found
$: brew install node
Error: node-0.6.18 already installed
$: brew doctor
Error: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built.

node

$: brew link node
Error: No such file or directory - /usr/local/Cellar/node/0.6.5
$: brew uninstall node
Error: No such file or directory - /usr/local/Cellar/node/0.6.5
$: brew install node
Error: node-0.6.18 already installed
Run Code Online (Sandbox Code Playgroud)

如何让我的节点回到正轨?

Jor*_*ein 48

我能够通过运行以下方式重新链接正确版本的节点:

brew cleanup
brew link node
brew uninstall node
brew install node
Run Code Online (Sandbox Code Playgroud)

  • 没有帮助."brew link node"错误:没有这样的桶:/ usr/local/Cellar/node (62认同)

Ada*_*dyk 8

我得到:

$ brew link node
Error: No such keg: /usr/local/Cellar/node
$ brew link node@8
Warning: node@8 is keg-only and must be linked with --force
Run Code Online (Sandbox Code Playgroud)

该命令有助于让一切恢复正常:

brew link --overwrite --force node@8
Run Code Online (Sandbox Code Playgroud)