简体   繁体   English

Windows上的react-native run-android错误:在PATH中找不到Watchman

[英]react-native run-android error on windows: Watchman was not found in PATH

I install react-native on windows 7 x64 using the official site guide. 我使用官方网站指南在Windows 7 x64上安装react-native

When i test the instalation using react-native run-android inside my project folder, i got the following error on React Packager : 当我在项目文件夹中使用react-native run-android测试安装时,我在React Packager上收到以下错误:

React Packager Watchman Error React Packager Watchman错误

I already tried: 我已经尝试过:

The error still appearing. 错误仍然出现。

Anyone knows how to fix this? 有人知道如何解决这个问题吗?

Had similar issues on windows. 在Windows上有类似的问题。 run npm -g uninstall watchman . 运行npm -g卸载watchman react-native was able to run smoothly. react-native能够顺利运行。 Turns out its a file watching service with quirks on windows, you could use other file watching service. 原来它是一个在Windows上具有怪癖的文件监视服务,您可以使用其他文件监视服务。 I'd also recommend using genymotion for your emulator, save yourself the headache. 我还建议您将genymotion用于您的模拟器,以免让您头痛。

Just do an 只是做一个
npm -g uninstall watchman npm -g卸载监视程序
npm -g install watchman npm -g安装监视程序
and hopefully that will fix your issue. 希望能解决您的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM