Error: Watchman was not found in PATH in windows

I am studying programming react-nativefor developing an application for Android. When I started the application at runtime, I received an error unable to resolve module. I found a link for this and suggested launching this command react-native start --reset-cache, which, in turn, requires watchmanthe system. I installed watchmanafter I could not startreact-native

initiating reaction

D:\React Native\Example 1\ExampleOne>react-native start
Scanning 560 folders for symlinks in D:\React Native\Example 1\ExampleOne\node_m
odules (27ms)
 β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”

 β”‚  Running packager on port 8081.                                            β”‚

 β”‚                                                                            β”‚

 β”‚  Keep this packager running while developing on any JS projects. Feel      β”‚

 β”‚  free to close this tab and run your own packager instance if you          β”‚

 β”‚  prefer.                                                                   β”‚

 β”‚                                                                            β”‚

 β”‚  https://github.com/facebook/react-native                                  β”‚

 β”‚                                                                            β”‚

 β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Looking for JS files in
   D:\React Native\Example 1\ExampleOne

Loading dependency graph...Watchman:  Watchman was not found in PATH.  See https
://facebook.imtqy.com/watchman/docs/install.html for installation instructions

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 `.watchmanco
nfig` file in your project root folder or initialize a git or hg repository in
 your project.
  Error: Watchman was not found in PATH.  See https://facebook.imtqy.com/watchma
n/docs/install.html for installation instructions
Watchman:  Watchman was not found in PATH.  See https://facebook.imtqy.com/watch
man/docs/install.html for installation instructions
 ERROR  Watchman was not found in PATH.  See https://facebook.imtqy.com/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.imtqy.com/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)

See http://facebook.imtqy.com/react-native/docs/troubleshooting.html
for common problems and solutions.

D:\React Native\Example 1\ExampleOne>

I installed watchmansuccessfully, and when I try to execute a command watchman, this happens

enter image description here

enter image description here

Here is mine installed watchman. I also added this to my PATH of my Windows machine.D:\React Native\Example 1\ExampleOne\node_modules\watchman

PATH is D: \ React Native \ Example 1 \ ExampleOne \ node_modules \ watchman

, . watchman? - , .

+3
3

, watchman npm. npm uninstall -g watchman npm uninstall watchman

+1

, . .watchmanconfig git hg .

.watchmanconfig / npm install

+1

watchman.exe Windows, Environmental PATH.

https://facebook.imtqy.com/watchman/docs/install.html

0
source

Source: https://habr.com/ru/post/1671351/


All Articles