web-dev-qa-db-fra.com

Impossible de "brancher" un fût non lié

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

Comment puis-je remettre mon noeud sur la bonne voie?

19
Jordan Feldstein

J'ai pu relier la version correcte du noeud en exécutant:

brew cleanup
brew link node
brew uninstall node
brew install node
45
Jordan Feldstein

Je devenais:

$ 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

Cette commande a aidé à tout remettre en marche:

brew link --overwrite --force node@8
1
Adam Chwedyk

Pour forcer le lien et écraser tous les fichiers en conflit:

brew link --overwrite node
0
user3681732