【问题标题】:(MacOS) Watchman unable to access file in Downloads(MacOS) Watchman 无法访问下载中的文件
【发布时间】:2021-10-05 20:07:45
【问题描述】:

我目前正在尝试编写 Expo 应用程序,但在运行“npm start”时出现以下错误:

Error: std::__1::system_error: open: [filepath to project]: Operation not permitted

一切正常,直到我不小心点击了弹出窗口上的“不允许”,显示“Watchman 想要访问您的下载文件夹中的文件”。

我已在安全和隐私部分授予 Watchman 完整磁盘访问权限,我已尝试重新安装 watchman,还尝试重新启动计算机,但错误仍然存​​在。

我也尝试过sudo watchman watch .,但后来我收到错误the owner of /usr/local/var/run/watchman/root-state is uid 501 and doesn't match your euid 0

有人知道怎么解决吗?

【问题讨论】:

    标签: npm expo watchman


    【解决方案1】:

    这个问题似乎自己解决了,我猜这个问题与 MacOS 本身有关,但它已经自我纠正了。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-07-17
      • 1970-01-01
      • 1970-01-01
      • 2021-07-12
      • 1970-01-01
      • 1970-01-01
      • 2019-10-19
      • 1970-01-01
      相关资源
      最近更新 更多