0
I’m starting in the development of apps with React-Native, to learn created a virtual machine running Lubuntu and followed the step by step installation of the prerequisites:
sudo apt-get update
# Instalação do node
sudo apt install build-essential libssl-dev
sudo curl -sL https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh -o install_nvm.sh
sudo bash install_nvm.sh
source ~/.profile
sudo nvm ls-remote
sudo nvm install 6.11.2
# Instalação Watchman
sudo apt install git
sudo git clone https://github.com/facebook/watchman.git
cd watchman/
sudo git checkout v4.7.0
sudo apt install -y autoconf automake build-essential python-dev
./autogen.sh
./configure
make
sudo make install
sudo apt install npm
# Instalação Flow
sudo npm install -g flow-bin
# Instalação React-native
sudo npm install -g create-react-native-app
# Criar app
create-react-native-app AwesomeProject
But after accessing the Awesomeproject folder and give the npm start
the screen hangs and is only in 17:37:54: Starting packager...
and does not advance.
I gave Ctrl+C to quit and while trying again this error appeared:
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=1503002873: inotify-add-watch(/opt/react-apps/AwesomeProject/node_modules/react-native-maps/lib/android/lib/build/generated/source/r/release/com/facebook/drawee/backends) -> 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-inotify-add-watch. Make sure watchman is running for this project. See https://facebook.github.io/watchman/docs/troubleshooting.html.
I tried to carry out the procedures described in https://facebook.github.io/watchman/docs/troubleshooting.html#poison-inotify-add-watch
but nothing helped
Have you tried running the'touch . watchmanconfig 'command from the terminal in your project root?
– Alessander França
I’ll try, but now only Monday
– Mateus