Gen*_*989 5 javascript reactjs watchman react-native
我安装了一个反应本机启动项目,在运行时,它要求授予 watchman 访问我系统文件的权限。我天真地拒绝了,但现在每当尝试运行该文件夹时都会收到以下错误:
Error: unable to resolve root /Users/ckoong/Desktop/Repos/rn-starter: failed to opendir(/Users/ckoong/Desktop/Repos/rn-starter): Operation not permitted
at BunserBuf.<anonymous> (/Users/ckoong/Desktop/Repos/rn-starter/node_modules/fb-watchman/index.js:95:23)
at BunserBuf.emit (events.js:315:20)
at BunserBuf.process (/Users/ckoong/Desktop/Repos/rn-starter/node_modules/bser/index.js:292:10)
at /Users/ckoong/Desktop/Repos/rn-starter/node_modules/bser/index.js:247:12
at processTicksAndRejections (internal/process/task_queues.js:75:11)
Emitted 'error' event on WatchmanWatcher instance at:
at Client.<anonymous> (/Users/ckoong/Desktop/Repos/rn-starter/node_modules/jest-haste-map/build/lib/WatchmanWatcher.js:130:10)
at Client.emit (events.js:315:20)
at BunserBuf.<anonymous> (/Users/ckoong/Desktop/Repos/rn-starter/node_modules/fb-watchman/index.js:107:12)
at BunserBuf.emit (events.js:315:20)
at /Users/ckoong/Desktop/Repos/rn-starter/node_modules/bser/index.js:249:12
at processTicksAndRejections (internal/process/task_queues.js:75:11) {
watchmanResponse: {
version: '4.7.0',
error: 'unable to resolve root /Users/ckoong/Desktop/Repos/rn-starter: failed to opendir(/Users/ckoong/Desktop/Repos/rn-starter): Operation not permitted'
Run Code Online (Sandbox Code Playgroud)
我见过很多人说要在系统首选项中授予对守望者的访问权限,但是,在窗口中搜索时,我在系统上的任何地方都没有看到任何对守望者的引用。
我正在为大苏尔工作。
请协助。
转到System Preferences-> Security & Privacy-> Privacy tab-> 向下滚动并单击Full Disk Access,然后检查Watchman。
| 归档时间: |
|
| 查看次数: |
2691 次 |
| 最近记录: |