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:
npx react-native init AwesomeProject
'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
Run this command
npm install -g react-native-cli
after that just add your npm path to your system variables in environment variables
C:UsersYOUR USERNAMEAppDataRoaming pm
2.1m questions
2.1m answers
60 comments
57.0k users