首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >启动watchman时出错

启动watchman时出错
EN

Stack Overflow用户
提问于 2017-11-26 00:11:59
回答 1查看 1.7K关注 0票数 6

嗨,当我想用'react-native start‘启动我的应用程序时,我得到了这个错误。有人知道该怎么做吗?我尝试将watchman文件夹和项目文件夹的权限更改为chmod -R 777 'path‘

代码语言:javascript
复制
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.
EN

回答 1

Stack Overflow用户

发布于 2020-02-14 06:20:32

你有没有试过从源代码的根目录运行这个脚本--通常会修复我的守望者的问题:

React Native Clean

您可以从存储package.json的目录中运行,如下所示:

代码语言:javascript
复制
# Download
wget https://gist.githubusercontent.com/jesussteve/45a9251e4d1419283086379e069aed56/raw/fb0107399b684dad3fecbc1af478575bfe0cb65f/react-native-clean.sh

# Set permissions
chmod a+x react-native-clean.sh

# Run script from current path
./react-native-clean.sh ./

建议在运行之前先备份,以防万一。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/47488000

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档