Monday 9 December 2019

Watchman error with Expo for running the React-Native app


Hey all after a very long time I am writing aboMyntra linkut some issues these days mostly in my weekend I have started a react-native course. So during the setup, I found some issues with Expo those who don't know about Expo. it is more like an emulator you can say hybrid emulator in a way because it will work for android and Ios with the same kind of setup. so writing this blog is about to mention one issue which I spend a day to fix then I realize to write it so it might help someone.

After running the expo via `sudo npm start` I got below error message which related to Watchman.




watchman --no-pretty get-sockname returned with exit code=1, signal=null, stderr=


And don't believe after spending a day I found one line code which works and fix the issue so fucking crazy .. :)

rm -rf /usr/local/var/run/watchman/root-state

You're running watchman as root but the state dir, which may contain trigger definitions and thus allow spawning arbitrary commands, is not owned by root. This is a security issue and thus watchman is refusing to start.

I'd recommend that you avoid running tools that wish to use watchman using sudo to avoid this happening again.
Thanks, that's all for today 
Happy coding guys.

Salesforce CRM vs. Zoho: A Comparative Analysis

Introduction: Selecting the right customer relationship management (CRM) software is crucial for businesses seeking to streamline their sal...