error-native watchman error, после запуска npm на Ubuntu 17.10.

Я пытаюсь запустить проект React-native на Ubuntu, узел, npm - в последних версиях. в соответствии с документацией у меня есть все официальные create-react-native-app и его зависимости.

вот мой экран вывода после запуска npm

gd@gd:~/Desktop$ cd testing7/ gd@gd:~/Desktop/testing7$ npm start > testing7@0.1.0 start /home/gd/Desktop/testing7 > react-native-scripts start 10:01:07: Starting packager... ***ERROR STARTING PACKAGER*** Starting React Native packager... Scanning folders for symlinks in /home/gd/Desktop/testing7/node_modules (44ms) Loading dependency graph. jest-haste-map: Watchman crawl failed. Retrying once with node crawler. Usually this happens when watchman isn't running. Create an empty `.watchmanconfig` file in your project's root folder or initialize a git or hg repository in your project. Error: Watchman error: A non-recoverable condition has triggered. Watchman needs your help! The triggering condition was at timestamp=1523075484: opendir(/home/gd/Desktop/testing7/node_modules/metro/node_modules/ansi-regex) -> The user limit on the total number of inotify watches was reached; increase the fs.inotify.max_user_watches sysctl All requests will continue to fail with this message until you resolve the underlying problem. You will find more information on fixing this at https://facebook.github.io/watchman/docs/troubleshooting.html#poison-opendir. Make sure watchman is running for this project. See https://facebook.github.io/watchman/docs/troubleshooting.html.

2
задан 7 April 2018 в 07:46

2 ответа

попробуйте выполнить эту команду:

echo 256 | sudo tee -a /proc/sys/fs/inotify/max_user_instances echo 32768 | sudo tee -a /proc/sys/fs/inotify/max_queued_events echo 65536 | sudo tee -a /proc/sys/fs/inotify/max_user_watches watchman shutdown-server
0
ответ дан 17 July 2018 в 17:19

попробуйте выполнить эту команду:

echo 256 | sudo tee -a /proc/sys/fs/inotify/max_user_instances echo 32768 | sudo tee -a /proc/sys/fs/inotify/max_queued_events echo 65536 | sudo tee -a /proc/sys/fs/inotify/max_user_watches watchman shutdown-server
0
ответ дан 23 July 2018 в 18:10
  • 1
    Привет, Aethiss, добро пожаловать в askubuntu! Отформатируйте свой код, вставив 4 раза перед вашей командой. – abu_bua 30 June 2018 в 15:50

Другие вопросы по тегам:

Похожие вопросы: