Error when starting watchman
Asked Answered
C

1

8

hi when i want to start my app with 'react-native start', i get this error. Somebody know what to do? I tried to change the permission of the watchman folder and the project folder to 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.
Cristalcristate answered 25/11, 2017 at 16:11 Comment(0)
P
0

Have you tried running this script from your the root directory of your source - usually fixes my watchman woes:

React Native Clean

You can run as follows from the directory where your package.json is stored:

# 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 ./

Would advise to back up first before running just in case.

Pollination answered 13/2, 2020 at 22:20 Comment(1)
The link is broken. Please post the actual content on StackOverflow to avoid these kind of problems.Possessed

© 2022 - 2024 — McMap. All rights reserved.