简体   繁体   中英

react-native run-android command not working

I am working on mobile apps using react native. Everything was working fine and I used to see my app in my simulator. Today I have attempted to change the default directory for the command prompt to my project directory so that I no need to do cd each time I open cmd prompt. Somehow it affected react native libraries and now I am not able to run -android on my machine. I have used below command to reset my default path.

 reg add "HKEY_CURRENT_USER\\Software\\Microsoft\\Command Processor" /v AutoRun /t REG_SZ /d "IF x"%COMSPEC%"==x%CMDCMDLINE% (cd /DF:\\development\\reactnative)" 

Below is the screenshot of the issue for run-android command enter image description here

Below is the screenshot of reg folder. Currently, I have removed Autorun. enter image description here

Can someone please help to undo this default directory change and reset to normal. I have searched a few solutions on google and tried but no use. I don't want to mess my system anymore. Please help me. Thanks.

重置PC并重新安装应用程序后,此问题已得到解决。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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