【发布时间】: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
有人知道怎么解决吗?
【问题讨论】: