Подтвердить что ты не робот

Не могу "заварить ссылку" несвязанный бочонок

$: 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

Как вернуть мой узел обратно?

4b9b3361

Ответ 1

Я смог восстановить правильную версию узла, запустив:

brew cleanup
brew link node
brew uninstall node
brew install node

Ответ 2

Я получаю:

$ brew link node
Error: No such keg: /usr/local/Cellar/node
$ brew link [email protected]
Warning: [email protected] is keg-only and must be linked with --force

Эта команда помогла снова запустить все:

brew link --overwrite --force [email protected]

Ответ 3

Чтобы заставить ссылку и перезаписать все конфликтующие файлы:

brew link --overwrite node

Ответ 4

Лично мне пришлось поработать над магией sudo chmod для файлов узлов, которые не были доступны для записи. Brew не позаботился о них по умолчанию даже после включения --force.