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
the message is fairly clear: Error: Watchman was not found in PATH. try to google for it, I'm sure you'll find something
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
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
.
I have the same issue here...
Likewise, I ran npm install -g watchman but still no dice.
try npm uninstall -g watchman then build (without installing again).
That fixed it!
try npm uninstall -g watchman then run npm install -g watchman
On mac, try to uninstall watchman and install with homebrew.
npm uninstall -g watchman
brew update
brew install watchman
Most helpful comment
On mac, try to uninstall watchman and install with homebrew.
npm uninstall -g watchmanbrew updatebrew install watchman