question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Watchman preventing App from loading on emulator or phone

See original GitHub issue

Description

Watchman: watchman --no-pretty get-sockname returned with exit code=3221225477, signal=null, stderr=

I’m getting this error whenever I start my app by npx react-native run-android command and it get’s stuck after finishing the build process.

Version

0.66.4

Output of npx react-native info

System: OS: Windows 10 10.0.19044 CPU: (8) x64 Intel® Core™ i7-10510U CPU @ 1.80GHz Memory: 1.73 GB / 15.76 GB Binaries: Node: 14.18.1 - C:\Program Files\nodejs\node.EXE Yarn: Not Found npm: 6.14.15 - C:\Program Files\nodejs\npm.CMD Watchman: 20220416.121541.0 - C:\ProgramData\chocolatey\bin\watchman.EXE SDKs: Android SDK: Not Found Windows SDK: Not Found IDEs: Android Studio: Version 2021.1.0.0 AI-211.7628.21.2111.8309675 Visual Studio: 15.9.28307.1778 (Visual Studio Community 2017) Languages: Java: javac 18 - C:\Program Files\Common Files\Oracle\Java\javapath\javac.EXE npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.66.4 => 0.66.4 react-native-windows: Not Found npmGlobalPackages: react-native: Not Found

Steps to reproduce

Install watchman via chocolatey, Run the emulator or connect a device, Run npx react-native run-android, After metro bundler opens up in a command line interface this error will pop-up Watchman: watchman --no-pretty get-sockname returned with exit code=3221225477, signal=null, stderr=

Snack, code example, screenshot, or link to a repository

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
musikobioscommented, Apr 28, 2022

Same issue, on:

OS: Windows 10 10.0.19044
Node: 16.14.2 - C:\Program Files\nodejs\node.EXE
npm: 8.5.0 - C:\Program Files\nodejs\npm.CMD
react: 17.0.2 => 17.0.2
react-native: 0.67.3 => 0.67.3

watchman installed with choco

Additionally, flipper debugger could not detect watchman executable even though I installed it.

Solution

After some digging, I noticed this may be an issue with watchman newer versions. So for me the solution was:

  1. choco uninstall watchman
  2. choco install watchman --version 2021.01.11.00 -y (or any version you want as long as it works)

After that, the error message disappeared & flipper detected watchman successfully.

0reactions
github-actions[bot]commented, Dec 4, 2022

This issue was closed because it has been stalled for 7 days with no activity.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Watchman connection refused, prevents react-native run ...
When I run react-native run-android on my project I get the following error: Loading dependency graph... BUNDLE [android, dev] ../.
Read more >
Troubleshoot known issues with Android Emulator
This page lists known issues, workarounds, and troubleshooting tips for the Android Emulator. If you encounter an issue not listed here or ...
Read more >
WATCHMAN Clinical Data - One Page Summary
The Most Studied LAAC Device with Long-Term Clinical Data Demonstrates Safety and Efficacy ... reduction in disabling/fatal stroke.
Read more >
How Run and Test React Native / Expo On Your Apple iOS ...
With options like running Android device/emulator, and run iOS simulator. ... stuck on Starting project at <path> , you may need to install...
Read more >
Troubleshooting - React Native
You will also need to update your applications to load the JavaScript bundle from the new port. If running on device from Xcode, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found