Reputation: 45
I have been using React-Native for a project it's been more than a month, to create the app I uninstalled the react-native-cli and followed what is described in the official docs (https://reactnative.dev/docs/environment-setup). Yesterday, I modified an existing project (from github) and run :
I had some errors so I updated npm, everything worked fine. I restarted my computer and tried to create a new app using the following command:
I uninstalled Node and installed the newest version (16.0.0) with npm version (7.11.2) and npx version (7.11.2).
Can someone please help me with this?
Upvotes: 1
Views: 1032
Reputation: 3966
Uninstalling global packages use this commond
npm uninstall -g react-native-cli
then restart computer and try create new app
I restarted my computer and tried to create a new app using the following command: npx react-native run-android Test
to create new app in react native use init
not run-android
npx react-native init Test
Upvotes: 1
Reputation: 74
i think you need to install react native cli but first Add npm path to your Environment variables; both system and user then install npm and react-native cli. and if that does not work,Solution is to install react-native-cli globally You can install it globally by using the below command:
npm install -g react-native-cli
Upvotes: 0