所以我整天都在尝试安装节点。我已经重新安装了 Xcode,安装了命令行工具,brew prune,brew cleanup,删除了节点,再次重新安装,它仍然不会链接。任何帮助是极大的赞赏。
运行 OSX 10.8.2
acd41302428433:Cellar rrichrs$ brew link node
Linking /usr/local/Cellar/node/0.8.15... Warning: Could not link node. Unlinking...
Error: Could not symlink file: /usr/local/Cellar/node/0.8.15/bin/npm
Target /usr/local/bin/npm already exists. You may need to delete it.
To force the link and delete this file, do:
brew link --overwrite formula_name
To list all files that would be deleted:
brew link --overwrite --dry-run formula_name
acd41302428433:Cellar rrichrs$ brew link --overwrite --dry-run formula_name
Error: No such keg: /usr/local/Cellar/formula_name
acd41302428433:Cellar rrichrs$