I have installed node and jdk8 using chocolaty.
While I was following the official guide "Setting up the development environment -> React Native ClI Quick start for 'Windows & Android'" I get the following error when I run npx react-native init AwesomeProject
command:
'react-native' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code 1
npm ERR! path E:UOGReact_Native_ProjectsMyFirstApp
npm ERR! command failed
npm ERR! command C:WINDOWSsystem32cmd.exe /d /s /c react-native init AwesomeProject
npm ERR! A complete log of this run can be found in:
npm ERR! C:UsersMuhammad SulemanAppDataLocal
pm-cache\_logs2021-01-23T09_10_07_360Z-debug.log
question from:https://stackoverflow.com/questions/65857596/i-get-react-native-is-not-recognized-as-an-internal-or-external-command-when-i