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 t
Solution 1:
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 i.e 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,
- my some apps stopped working after doing that so I had to reinstall them.
- don't forget to create restore point to restore to previous condition if u run into some problem.
- I didn't check all the appearance of my username by pressing f3 and following stuff again and again(it will took forever), I just exported registry editor and opened the exported file with sublime text editor searched for my old username and replaced all username at once by clicking of "find and replace all" and saved that registry files, but I took care of some technical things which I can't tell exactly here, otherwise I would run into problems. well after changing username I imported that changed registry editor file back into registry editor, it said it is erroneous but I ignored that and just restarted computer and followed remaining steps and it worked fine after then.
- I would recommend if u r a bit computer genius only then try to tweak registry else just go for some other solution which may be is to reinstall windows and set single named username this time
Post a Comment for "Unable To Run React-native App On Android Emulator Because 'C:/User/firstname' Is Not Recognized As Internal Or External Command"