Watchman

Do I need to keep .watchmanconfig file in react-native project

99封情书 提交于 2021-01-20 04:47:45
问题 default react native project generates .watchmanconfig file that is simply empty object {} , can I safely delete this? A subquestion would be: is there any watchman configuration I can do / refference to improve react-native project experience somehow? 回答1: .watchmanconfig can be safely deleted. If Watchman does not find the .watchmanconfig relative to your root directory, then it will simply load the watchman configuration present in /etc/watchman.json in your global configuration. You don't

Could not find iPhone 6 simulator

有些话、适合烂在心里 提交于 2020-02-28 08:53:42
最近原来的老项目有点问题需要处理一下,运行启动命令,就报了如下错误,提示找不到iPhone 6 模拟器。 react-native run-ios Owaiss-Mac:pdm owaisahmed$ react-native run-ios Found Xcode project pdm.xcodeproj Could not find iPhone 6 simulator Error: Could not find iPhone 6 simulator at resolve (/Users/fantuan/Documents/react-native-projects/pdm/node_modules/react-native/local-cli/runIOS/runIOS.js:149:13) at new Promise (<anonymous>) at runOnSimulator (/Users/fantuan/Documents/react-native-projects/pdm/node_modules/react-native/local-cli/runIOS/runIOS.js:134:10) at Object.runIOS [as func] (/Users/fantuan/Documents/react-native-projects/pdm/node

React Native Error: ENOSPC: System limit for number of file watchers reached

橙三吉。 提交于 2020-01-22 05:04:06
问题 I have setup a new blank react native app. After installing few node modules I got this error. I know it's related to no enough space for watchman to watch for all file changes. I want to know what's the best course of action to take here ? Should I ignore node_modules folder by adding it to .watchmanconfig ? 回答1: You could try editing echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p cat /proc/sys/fs/inotify/max_user_watches fs.inotify.max_user_watches

the command `brew install watchman` runs `chmod` but fails to install eventually

百般思念 提交于 2020-01-05 03:27:28
问题 brew install --HEAD watchman ==> Cloning https://github.com/facebook/watchman.git Updating /Library/Caches/Homebrew/watchman--git ==> Checking out branch master ==> ./autogen.sh ==> ./configure --prefix=/usr/local/Cellar/watchman/HEAD --with-pcre ==> make ==> make install install: chmod 777 /: Operation not permitted touch //.not-empty touch: //.not-empty: Permission denied make[1]: *** [install-exec-local] Error 1 make: *** [install-am] Error 2 couldn't understand kern.osversion `14.5.0'

React Native npm start gets stuck at Starting Packager

安稳与你 提交于 2019-12-24 23:14:50
问题 I've made an app with react native - create-react-native-app. Initially npm start worked fine. But now npm start get's stuck at Starting Packager. A few days ago, deleting the node_modules folder and reinstalling npm dependencies and then doing npm start seemed to work. But now even that doesn't work. Any help will be appreciated npm -v 6.0.0 node -v v10.0.0 react-native-cli: 2.0.1 react-native: 0.54.0 os - Ubuntu 16.04 回答1: The issue was in the /proc/sys/fs/inotify/max_user_watches = 8192

Why “Watchman crawl failed” error in react-native immediately after updating to macOS catalina?

限于喜欢 提交于 2019-12-23 03:42:13
问题 Trying to run react-native run-ios or build RN project from xcode, as soon as metro bundler starts, this error appears in the terminal: 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: resolve_projpath: path `/Users/vorousjames/Desktop/Development

Error when running watchman

时光毁灭记忆、已成空白 提交于 2019-12-18 13:29:48
问题 When I run react-native start , I am getting the following message Error: A non-recoverable condition has triggered. Watchman needs your help! The triggering condition was at timestamp=1489123194: inotify-add-watch(/var/www/html/eventManager/android/app/src/main/res/mipmap-mdpi) -> 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