本文介绍了反应本机错误-无法将yarn'识别为内部或外部命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我无法运行示例React Native AwesomeProject项目。I am not able to run the sample react Native AwesomeProject project.有人可以帮忙吗?以下是详细信息。 Can anyone help? Below is the details. 推荐答案 Yarn是Facebook创建的工具,可作为npm的有效替代方案。以您的情况..只是通知您系统中未安装Yarn。 Yarn is a tool created by facebook as an efficient alternative for npm. In your case.. it is just informing that Yarn is not installed in your system. It is not the culprit.问题出在 VM初始化期间发生错误java / lang / NoClassDefFoundError:java / lang / Object无法在设备上安装该应用行。看起来像Java安装错误。 The problem lies in Error occurred during initialization of VM java/lang/NoClassDefFoundError: java/lang/Object Could not install the app on the device line. It looks like an error with the Java installation. 解决方案:转到 C:\Windows\System32 目录并删除 java .exe (或将其重命名为 java.exe.old 之类)Solution: Go to C:\Windows\System32 directory and delete java.exe (or rename it to something like java.exe.old)请参阅此答案以获取更多详细信息 https://stackoverflow.com/a/30577609/5597641 。refer this answer for more details https://stackoverflow.com/a/30577609/5597641. btw,您可以通过在命令提示符下键入 npm install -g yarn 来安装Yarn。btw you can install Yarn by typing npm install -g yarn in your command prompt. 这篇关于反应本机错误-无法将yarn'识别为内部或外部命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 10-16 18:02