2017年8月31日 星期四

brew install older keg && watchman issue

20170831 brew install older keg && watchman issue

watchman 卡住怪怪的, 試著裝回舊版

暫時改用舊版

$ cd /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core
  • 找到 4.9.0 的 commit e253d29d759d8e00b46a573d9724ac4d397f5c67
$ git revert e253d29d759d8e00b46a573d9724ac4d397f5c67
  • 重新安裝 watchman 就會從 4.9.0 回 4.7.0 了
$ brew uninstall watchman
$ brew install watchman

再回復 homebrew 原來的 git repo

$ gir reset --hard @~1

結果解決不了 -__-

後來發現 watchman 卡住跑不起來的解法

$ rm -rf /usr/local/var/run/watchman

在 tmux 外重跑

$ brew reinstall watchman
$ watchman version