[英]Unable to run react-native app on android emulator because 'C:/User/firstname' is not recognized as internal or external command
I am running 'npx react-native start' on one terminal and waiting for it to start app and then running 'npx react-native run-android' on other terminal to start app but receiving this error... any solution plz?我在一个终端上运行'npx react-native start'并等待它启动应用程序,然后在另一个终端上运行'npx react-native run-android'以启动应用程序但收到此错误......请问有什么解决方案吗? i think may the white space between firstname and lastname(OK Computers) of my username is creating fuss but how can i resolve it.我认为我的用户名的名字和姓氏(OK 计算机)之间的空白可能会引起大惊小怪,但我该如何解决。
Simply my computer name consisted of two words separated by a white space(for example: "Ali Azlan" the white space btw Ali and Azlan will create problem, I don't know why and how npx works but it only works with single name(no whitespace between). So I changed name of my computer to single name ie Ali using these instructions Windows 10 - Username with whitespace and PATH follow the longest answer on that link. but reading cautions below before doing so,只是我的计算机名称由两个由空格分隔的单词组成(例如:“Ali Azlan”空格 btw Ali 和 Azlan 会产生问题,我不知道 npx 为什么以及如何工作,但它仅适用于单个名称(之间没有空格)。所以我使用这些说明将我的计算机的名称更改为单个名称,即 Ali Windows 10 - 带有空格和 PATH 的用户名遵循该链接上最长的答案。但在这样做之前请阅读以下注意事项,
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.