Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't `brew link` an unlinked keg

Tags:

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

How do I get my node back on track??

like image 831
Jordan Feldstein Avatar asked Jun 03 '12 05:06

Jordan Feldstein


1 Answers

I was able to relink the correct version of node by running:

brew cleanup brew link node brew uninstall node brew install node 
like image 114
Jordan Feldstein Avatar answered Oct 01 '22 22:10

Jordan Feldstein