npm - When i run this command "npx react-native init MyApp" in vs code terminal, i cannot see android and ios

admin2025-04-18  5

There are no gradle files as well. I do not have expo cli installed. I uninstalled Expo also I have checked all the resources as well as asked ChatGPT, but I am not finding a fix to this. ChatGPT says I created my project with the expo but I have not. I used this command as well "npx react-native init MyApp --template react-native@latest" but still no folders. This is in my package.json file

({
   "name":"MyApp",
   "version":"0.0.1",
   "private":true,
   "scripts":{
      "start":"node node_modules/react-native/local-cli/cli.js start"
   },
   "dependencies":{
      "react-native":"0.77.0"
   }
})

What do I do, or will these files be created later? There is only one folder(node modules), package.json and package-lock.json file, in my directory. I do not want an expo. I cannot find a way to do anything more than uninstalling it.

I used everything in this thread ";.

There are no gradle files as well. I do not have expo cli installed. I uninstalled Expo also I have checked all the resources as well as asked ChatGPT, but I am not finding a fix to this. ChatGPT says I created my project with the expo but I have not. I used this command as well "npx react-native init MyApp --template react-native@latest" but still no folders. This is in my package.json file

({
   "name":"MyApp",
   "version":"0.0.1",
   "private":true,
   "scripts":{
      "start":"node node_modules/react-native/local-cli/cli.js start"
   },
   "dependencies":{
      "react-native":"0.77.0"
   }
})

What do I do, or will these files be created later? There is only one folder(node modules), package.json and package-lock.json file, in my directory. I do not want an expo. I cannot find a way to do anything more than uninstalling it.

I used everything in this thread "https://stackoverflow.com/questions/52476154/uninstalling-expo-cli".

Share Improve this question edited Feb 1 at 16:01 Talha 89412 silver badges23 bronze badges asked Jan 30 at 5:33 Dawood HaiderDawood Haider 112 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

The command I was previously using has been deprecated and is no longer recommended for creating new React Native applications. To set up a React Native app without utilizing Expo, you should use the following command:

npx @react-native-community/cli@latest init Your-Project_Name

This command ensures that you are leveraging the latest version of the tools needed to initialize your project effectively. Be sure to replace "Your-Project_Name" with your desired project name.

转载请注明原文地址:http://anycun.com/QandA/1744936666a89728.html