我有很多破碎的自制软件符号链接,我该怎么办?

我在8个月前通过自制软件安装了node

我从哪里出发? 我只是想通过自制软件重新安装nodenpm ,以便它们正常工作。 我应该用brew prune:删除损坏的符号链接brew prune:还是会给我造成更多的问题? 谢谢。

       

网上收集的解决方案 "我有很多破碎的自制软件符号链接,我该怎么办?"

brew prune就是为了这个。 你也可以干运行它,看看会用--dry-run标志去掉什么。

 prune [--dry-run] Remove dead symlinks from the Homebrew prefix. This is generally not needed, but can be useful when doing DIY installations. Also remove broken app symlinks from /Applications and ~/Applications that were previously created by brew linkapps. If --dry-run or -n is passed, show what would be removed, but do not actually remove anything.