You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

MacOS卸载watchman后执行命令仍报错的问题求助

解决卸载watchman后仍报错的问题

1. 定位残留的watchman文件

先执行命令查看系统中仍存在的watchman可执行文件路径:

which watchman

从报错路径/opt/local/var/run/watchman来看,你大概率还有MacPorts版本的watchman残留(/opt/local是MacPorts默认安装目录,和Homebrew的/usr/local路径区分开)。

2. 彻底清理残留内容

  • 若为MacPorts安装的watchman,执行卸载命令:
sudo port uninstall watchman
  • 手动删除报错提及的残留路径及配置文件:
sudo rm -rf /opt/local/var/run/watchman
sudo rm -rf ~/.watchmanconfig

3. 验证清理结果

再次执行以下命令,确认watchman已完全移除:

which watchman

如果无任何输出,说明清理成功,此时输入watchman会提示command not found,即为正常卸载状态。


内容的提问来源于stack exchange,提问作者Renato Peres Clickativo

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.06 03:16:13