Ошибка при запуске сторожа
Привет, когда я хочу запустить свое приложение с "реакцией родного запуска", я получаю эту ошибку. Кто-нибудь знает, что делать? Я попытался изменить разрешение папки сторожа и папки проекта на 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.
0 ответов
Вы пробовали запустить этот скрипт из корневого каталога вашего источника - обычно это исправляет мои проблемы со сторожем:
Вы можете запустить его из каталога, в котором находится ваш package.json
хранится:
# 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 ./
Посоветовал бы сначала сделать резервную копию перед запуском на всякий случай.