2012-06-03 26 views
14
$: 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 

如何讓我的節點回到正軌?不能`釀造鏈接`一個未鏈接的小桶

+0

什麼'釀造doctor'說?如果沒有幫助,你應該考慮[發送錯誤報告](https://github.com/mxcl/homebrew/wiki/Reporting-Bugs)。 – elmigranto

+0

錯誤:您的酒窖中存在未連接的酒桶 將酒桶斷開可能會導致生成問題並導致沖泡,這些沖泡取決於這些酒桶在構建後無法正常運行。 GEOS 節點 PostGIS的 凸出 –

+0

對於其他人遇到這個問題,我認爲這是值得看的太:錯誤:「釀造鏈接」一步沒有成功完成(http://stackoverflow.com/q/12607155/320399) – blong

回答

38

我可以通過運行重新鏈接節點的正確版本:

brew cleanup 
brew link node 
brew uninstall node 
brew install node 
+1

由於某些原因,我必須以sudo的身份運行卸載程序。但是,謝謝,這工作。 –

+0

有同樣的問題 - 完美的工作。謝謝 –

+0

它爲我工作! – DragonFax

0

要強制鏈接,並覆蓋所有衝突的文件:

brew link --overwrite node