windows10下执行react-native start报错:Watchnan was not found in PATH



  • 配置安卓环境,按照教程一步一步弄到最后了,但是执行start命令出现了这个:
    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:874:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
    at onErrorNT (internal/child_process.js:344:16)
    at doNTCallback2 (node.js:441:9)
    at process._tickCallback (node.js:355:17)
    安卓模拟器显示fail to load JS boundle,有前辈赐教么。。



  • 已经解决,原因是Windows中装了Cygwin,react-native误判为Linux或Mac OS系统,导致不经过Timeout直接去执行windows下暂时还没有的watchman,把Cygwin从环境变量中删除就可以了,这两个环境是冲突的



  • 我和你同一的问题 但是我没有安装Cygwin 环境变量也没Cygwin 怎么办