嗨,当我想用“react-native start”启动我的应用程序时,我收到这个错误。有人知道该怎么做吗?我尝试将watchman文件夹和project文件夹的权限更改为chmod -R 777“path”
Metro Bundler ready.
Loading dependency graph...watchman warning: opendir(/home/t/react/testApp/android/app/build/generated/source/r/debug/com) -> Permission denied. Marking this portion of the tree deleted
Recrawled this watch 1 times, most recently because:
/home/t/react/testApp: dir missing from internal state
To resolve, please review the information on
https://facebook.github.io/watchman/docs/troubleshooting.html#recrawl
To clear this warning, run:
`watchman watch-del /home/t/react/testApp ; watchman watch-project /home/t/react/testApp`
opendir(/home/t/react/testApp/android/app/build/generated/source/r/debug/com) -> Permission denied. Marking this portion of the tree deleted
Recrawled this watch 1 times, most recently because:
/home/t/react/testApp: dir missing from internal state
To resolve, please review the information on
https://facebook.github.io/watchman/docs/troubleshooting.html#recrawl
To clear this warning, run:
`watchman watch-del /home/t/react/testApp ; watchman watch-project /home/t/react/testApp`
Loading dependency graph, done.
1条答案
按热度按时间hmmo2u0o1#
你有没有试过从你的源代码的根目录运行这个脚本-通常修复我的watchman烦恼:
React Native Clean
可以从存储
package.json
的目录中按如下方式运行:会建议在运行之前先备份,以防万一。