cli: even when rn doctor does not detect any error, npx rn run android does not work

am new here, so already sorry if I committed any mistake in this prompt. So I am willing to create an app, I followed all the instructions on the starter page but, when I try to run “npx react-natin run-android” i get as a feed back this `S C:\Users\Ricardo\OneDrive - ufpr.br\Documentos\Área de Trabalho\SmartMobility 2.0\AwesomeProject> npx react-native run-android info JS server already running.

info 💡 Tip: Make sure that you have set up your development environment correctly, by running react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor

:ReactNative:Unexpected empty result of running ‘[node, C:\Users\Ricardo\OneDrive - ufpr.br\Documentos\�?rea de Trabalho\SmartMobility 2.0\AwesomeProject\node_modules@react-native-community\cli\build\bin.js, config]’ command. :ReactNative:Running ‘[node, C:\Users\Ricardo\OneDrive - ufpr.br\Documentos\�?rea de Trabalho\SmartMobility 2.0\AwesomeProject\node_modules@react-native-community\cli\build\bin.js, config]’ command failed.

FAILURE: Build failed with an exception.

  • Where: Script ‘C:\Users\Ricardo\OneDrive - ufpr.br\Documentos\�rea de Trabalho\SmartMobility 2.0\AwesomeProject\node_modules@react-native-community\cli-platform-android\native_modules.gradle’ line: 389

  • What went wrong: A problem occurred evaluating script.

node:internal/modules/cjs/loader:1051 throw err; ^Error: Cannot find module ‘C:\Users\Ricardo\OneDrive - ufpr.br\Documentos\Ã�rea de Trabalho\SmartMobility 2.0\AwesomeProject\node_modules@react-native-community\cli\build\bin.js’ at Module._resolveFilename (node:internal/modules/cjs/loader:1048:15) at Module._load (node:internal/modules/cjs/loader:901:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12) at node:internal/main/run_main_module:23:47 { code: ‘MODULE_NOT_FOUND’, requireStack: []}Node.js v20.9.0

  • Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

BUILD FAILED in 1s`

What can i do? the doctor function says that everything is ok

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 16 (1 by maintainers)

Most upvoted comments

Are you serious ? Thanks for your reply

Ye☹️

@rmlinx Hi, I am getting the same error. Did you fix the error?

Nah, i couldnt solve it, just gave up, and changed the computer i was using, problaly something related to a config, but i dont know what or why

@rmlinx Hi, I am getting the same error. Did you fix the error?