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

[Modern] compiler Watchman error #1626

Closed
adjourn opened this issue Apr 18, 2017 · 4 comments
Closed

[Modern] compiler Watchman error #1626

adjourn opened this issue Apr 18, 2017 · 4 comments

Comments

@adjourn
Copy link

adjourn commented Apr 18, 2017

I get the following log:

> relay-compiler --src ./js --schema ./schema.json

HINT: pass --watch to keep watching for changes.
Watchman:  Watchman was not found in PATH.  See https://facebook.github.io/watchman/docs/install.html for installation instructions
events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: Watchman was not found in PATH.  See https://facebook.github.io/watchman/docs/install.html for installation instructions
    at exports._errnoException (util.js:1022: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)
    at Module.runMain (module.js:607:11)
    at run (bootstrap_node.js:420:7)
    at startup (bootstrap_node.js:139:9)
    at bootstrap_node.js:535:3

System: Windows 10 x64
Version: "relay-compiler": "^1.0.0-rc.1"

Can't find any mentions of Watchman in docs.
Is this a Windows specific error, bug or is this just an "install step" left out from docs?

PS! I get the error with and without the --watch flag.

@mjmahone
Copy link
Contributor

I believe you'll need to install and enable Watchman's alpha Windows release to get this to work: facebook/watchman#19

@adjourn
Copy link
Author

adjourn commented Apr 19, 2017

@mjmahone As I suspected. I installed Watchman and added it to PATH. Compiler is working now.

@seemple
Copy link

seemple commented Aug 8, 2017

@unirey Hi! Could you please explain me how did add Watchman to PATH ? Thanks in advanced!

@adjourn
Copy link
Author

adjourn commented Aug 12, 2017

@seemple I don't remember, Im not too familiar with OS's mechanics & this is one of those things you don't do very often. But it's a general Windows question, search online for "how to add to windows path".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants