Reactive-android-response not recognized

I installed response-native-cli globally:

npm install -g react-native-cli 

Then run:

 react-native init AwesomeProject cd AwesomeProject 

I got the following structure:

 -- AwesomeProject ---- node_modules ------ react-native 

When I run reagent-native Android launch, I get an error message:
The run-android command is not recognized. Did you want to launch this in a jet project?

When I launch a jet start, I get the same thing.

react-native -v
prints:
response-native-cli: 0.2.0
response-native: n / a - not in React Native project directory

What am I doing wrong?

+17
source share
15 answers

The problem was that I completed the init command because it looked like it was hung without errors (even after 24 hours). To fix this, I upgraded nodejs and npm to newer versions. As soon as I did this, the -native init reaction was executed properly, and there is no longer a problem with react-native run-android .

+5
source

For me, this meant running npm install --save [package] , when in fact the system previously used yarn instead of npm .

To solve this problem, I just deleted the node_modules folder and ran: yarn install , after which react-native run-ios (or android) works fine.

(duplcate of React Native: the `run-ios` command is not recognized )

+27
source

I just ran the β€œyarn” with no arguments and fixed it.

+17
source

you need to update your npm number. For this

 npm install npm@latest -g 
+4
source

I think the command you are looking for is run-android.

cd into your project and run this command, where all your js files are present, and not in the android folder.

It will start the package manager, do not close it. You also need to have an emulator or device connected to your computer with usb debugging turned on.

Hope the answer helped

+3
source

try installing yarn. It will install the missing files in node_modules

It worked for me

+3
source

reaction-native run-android unrecognized

Make sure you install npm or use in the project directory

 npm install 
+3
source

Please try this URL, it will help you

 npm install --save react-native 

Yes, thanks for sharing your work.

+2
source

I did everything correctly during setup, but could not run the Android code. Just make sure that while you are running the react-native run-android command, you are inside the AwesomeProject folder created by the react-native init AwesomeProject .

The default folder for my PC was under C:\Windows\system32\AwesomeProject on Windows.

Hope this helped for the first timers :)

+1
source

You need to update the project with the latest version of act-native. Just run this command.

npm install --save react-native@latest

+1
source

Remove react-native from the global

 $ npm uninstall -g react-native 

Then

Set react-native to global

 $ npm install -g react-native-cli 
0
source
  • Make sure you go to the directory with package.json

  • If you removed the node modules, try "npm install".

  • And don't forget the "init" in the "reaction-native init MyApp". "in that"
    initializes package.json.

0
source

It worked for me

 react-native run-android start [options] starts the webserver run-ios [options] builds your app and starts it on iOS simulator run-android [options] builds your app and starts it on a connected Android emulator or device new-library [options] generates a native library bridge bundle [options] builds the javascript bundle for offline use unbundle [options] builds javascript as "unbundle" for offline use eject [options] Re-create the iOS and Android folders and native code link [options] [packageName] links all native dependencies (updates native build files) unlink [options] <packageName> unlink native dependency install [options] <packageName> install and link native dependencies uninstall [options] <packageName> uninstall and unlink native dependencies upgrade [options] upgrade your app template files to the latest version; run this after updating the react-native version in your package.json and running npm install log-android [options] starts adb logcat log-ios [options] starts iOS device syslog tail dependencies [options] lists dependencies info [options] Get relevant version info about OS, toolchain and libraries 

They made some subtle changes. For example, run-android (now), run android (before).

0
source

Try removing "package-lock.json" and restarting "npm install", then try your command, it should work

0
source

I got this error because I had parentheses in the path "(" and ")". Perhaps this error also occurs for other special characters.

0
source

All Articles