当我在项目上运行react-native run-android
时,出现以下错误:
Loading dependency graph...
BUNDLE [android, dev] ../../index.js ░░░░░░░░░░░░░░░░ 0.0% (0/1)2019-01-27T11:26:16,173:
[cli] unable to talk to your watchman on /usr/local/var/run/watchman/myusername-state/sock! (Connection refused)
有些相关,在以下链接中运行步骤3i)时遇到相同的错误,以帮助我的android仿真器启动并运行。 https://medium.com/@adityasingh_32512/solved-unable-to-load-script-from-assets-index-android-bundle-bdc5e3a3d5ff
如果您知道我能做些什么来帮助您,请告诉我。我尝试过
brew uninstall watchman
brew install --HEAD watchman
但是当我有HEAD标记时出现错误
Library/Logs/Homebrew/watchman/01.autogen.sh:
File "./getdeps.py", line 629, in <module>
main()
File "./getdeps.py", line 608, in main
install_platform_deps()
File "./getdeps.py", line 537, in install_platform_deps
allow_fail=True,
File "./getdeps.py", line 283, in run_cmd
subprocess.call(cmd, env=env, cwd=cwd)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 522, in call
return Popen(*popenargs, **kwargs).wait()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
但是当我只做brew install watchman
时,它安装得很好,但是我仍然无法加载依赖关系图