watchman : unknown option --no-pretty error while npm start
Hi I am getting 'unknown option --no-pretty' error while trying to start development server of react-native android project.
I executed
npm start
Then i got this:
React packager ready.
ERROR: Unknown option --no-pretty
Watchman: watchman--no-pretty get-sockname returned with exit code 1 ERROR: Unknown option --no-pretty
ERROR watchman--no-pretty get-sockname returned with exit code 1 ERROR: Unknown option --no-pretty
Error: watchman--no-pretty get-sockname returned with exit code 1 ERROR: Unknown option --no-pretty
at ChildProcess.<anonymous> (/home/sreejith/projects/sample/node_modules/react-native/node_modules/sane/node_modules/fb-watchman/index.js:194:18)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:817:16)
at Socket.<anonymous> (internal/child_process.js:319:11)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)
at Pipe._onclose (net.js:469:12)
Please help
+1
brew update or use brew install brew --head may help
Thanks for reporting! What does watchman --version print for you? I'm on 3.8.0.
+1 occurs with 3.7.0 and 3.8.0
watchman --version outputs: ERROR: Unknown option --version
are you guys using facebooks' watchman? not the one thats on NPM
ok i fixed it this way: npm r -g watchman brew update && brew upgrade brew install watchman
I was using npm's watchman. It was conflicting with the watchman installed with brew. Removed all other watchman installations in npm and installed again with brew. Now it is working properly.
This fixed it for me:
brew update && brew upgrade brew install watchman
Still seeing this issue. None of the above fixed it for me. Running watchman 3.8.0
I have just solved an issue similar to this one by running
$ sudo chown -R $(whoami):admin /usr/local
I must have messed with the permissions at one point or the other. Hope it helps!
brew uninstall watchman brew link pcre brew install --HEAD watchman
and be sure that you changed the localhost with your localhost url (ifconfig command to check -> http://127.0.0.1:8081/index.ios.bundle?platform=ios&dev=true in my case)
awesome thanks!!
Same problem with watchman 4.5.0
same problem with watchman 4.5.0
same problem with watchman 4.5.0
My current solution is to just completely uninstall watchman. I can still develop without it.
same with watchman 4.5.0 plz fix
updating xquartz to latest fixed this https://www.xquartz.org/
If $watchman --version does not work, you are not using the appropriate watchman. Uninstall NPM watchman by $sudo npm r -g watchman and re-install it with brew $brew install --HEAD watchman. If you had install with brew before, first uninstall with $brew uninstall watchman. So better:
sudo npm r -g watchman brew uninstall watchman brew install --HEAD watchman