-watchmanresponse-version-4.7.0-error-a-non-recoverable-condition-has-triggered.-'s People
-watchmanresponse-version-4.7.0-error-a-non-recoverable-condition-has-triggered.-'s Issues
install react netive on ubuntu 18.04
Install Node.js:
sudo apt-get install nodejs
nodejs -v
Install nvm
sudo apt-get update
Install** c++ compiler*. It may already exists, but just in case.*
sudo apt-get install build-essential libssl-dev
Install nvm
sudo apt install curl
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
Reload bash
source ~/.bashrc
After installation close and reopen terminal and check nvm version
nvm --version
Install node
Install latest node
nvm install node
Set default node version for nvm
nvm alias default node
Check version of node and npm
node -v
npm -v
npm install -g react-native-cli
Install Java jdk
sudo apt install openjdk-8-jre openjdk-8-jdk
java -version
javac -version
Configure build path in your .bashrc
sudo nano /home/mohammed/.bashrc
export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
export PATH=$PATH:$ANDROID_HOME/emulator
Reload bash
source ~/.bashrc
echo $ANDROID_HOME
out
/home/mohammed/Android/Sdk
Trouble shooting with permission
sudo apt install qemu-kvm
sudo adduser mohammed kvm
sudo chown mohammed /dev/kvm
install watchman
sudo apt install git
git clone https://github.com/facebook/watchman.git
cd watchman/
git checkout v4.7.0
sudo apt-get install -y autoconf automake build-essential python-dev
./autogen.sh
./configure
make
error this step
./configure --enable-lenient
sudo make install
watchman –version
# 4.7.0
Creating a Sample application
npx react-native init SampleProject
Run React Native App
cd SampleProject
mkdir android/app/src/main/assets
go to file “ node_modules/metro-config/src/defaults/blacklist.js “
var sharedBlacklist = [ /node_modules[/\]react[/\]dist[/\]./, /website/node_modules/./, /heapCapture/bundle.js/, /./tests/./ ];
react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
npm install
npm start - --reset-cache
Finally, run the app using this command
npx react-native run-android
error watchmanResponse: {
version: '4.7.0',
error: 'A non-recoverable condition has triggered. Watchman needs your help!\n' +
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
npx react-native start
i finded solution. I did sudo pkill -9 -x fseventsd and then run command react-native start with sudo. sudo react-native start
Error when running watchman
Fix Error when running watchman
Error watchmanResponse version: '4.7.0', error: 'A non-recoverable condition has triggered. Watchman needs your help!\n' +
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
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.