Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Watchman was not found #11731

Closed
junaidahmed93 opened this issue Jan 5, 2017 · 9 comments
Closed

Watchman was not found #11731

junaidahmed93 opened this issue Jan 5, 2017 · 9 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@junaidahmed93
Copy link

Hello everyone,
I am new to react-native. I have already installed watchman using npm but still facing this problem.
Also tried some manual installation process for watchman but no luck.

[01/05/2017, 12:56:42] <START> Initializing Packager
Watchman:  Watchman was not found in PATH.  See https://facebook.github.io/watchman/docs/install.html for installation instructions
[01/05/2017, 12:56:42]         HMR Server listening on /hot

React packager ready.

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 was not found in PATH.  See https://facebook.github.io/watchman/docs/install.html for installation instructions
Watchman:  Watchman was not found in PATH.  See https://facebook.github.io/watchman/docs/install.html for installation instructions
 ERROR  Watchman was not found in PATH.  See https://facebook.github.io/watchman/docs/install.html for installation instructions
{"code":"ENOENT","errno":"ENOENT","syscall":"spawn watchman","path":"watchman","spawnargs":["--no-pretty","get-sockname"]}
Error: Watchman was not found in PATH.  See https://facebook.github.io/watchman/docs/install.html for installation instructions
    at exports._errnoException (util.js:1026:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
    at onErrorNT (internal/child_process.js:359:16)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)

See http://facebook.github.io/react-native/docs/troubleshooting.html
@junaidahmed93 junaidahmed93 changed the title Watchaman was not found Watchman was not found Jan 5, 2017
@vonovak
Copy link
Contributor

vonovak commented Jan 5, 2017

the message is fairly clear: Error: Watchman was not found in PATH. try to google for it, I'm sure you'll find something

@ericvicenti
Copy link
Contributor

Yes this should be fixable with a proper installation of watchman and putting it in your PATH env. Feel free to re-open if this isn't the issue and you have more details

@junaidahmed93
Copy link
Author

What does it mean by proper installation of watchman
it seem there is nothing to install watchman for windows.
I haven't found a single way to install watchman on windows, already tried with, scoop , chocolatey but there is nothing to install. Only npm providing watchman package but the error is same again after re-installations
.

@IgorVanian
Copy link

I have the same issue here...

@davkuzmin
Copy link

Likewise, I ran npm install -g watchman but still no dice.

@junaidahmed93
Copy link
Author

try npm uninstall -g watchman then build (without installing again).

@davkuzmin
Copy link

That fixed it!

@aniket-jft
Copy link

try npm uninstall -g watchman then run npm install -g watchman

@tirumalavasu
Copy link

tirumalavasu commented Dec 25, 2017

On mac, try to uninstall watchman and install with homebrew.
npm uninstall -g watchman
brew update
brew install watchman

@facebook facebook locked as resolved and limited conversation to collaborators May 24, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

8 participants