react-native-community / cli

The React Native Community CLI - command line tools to help you build RN apps
MIT License
2.41k stars 905 forks source link

get same error #2496

Closed Devendra7409 closed 2 months ago

Devendra7409 commented 2 months ago
szymonrybczak commented 2 months ago

hey @Devendra7409, what's the output of?

node /Users/Documents/project1/node_modules/@react-native-community/cli/build/bin.js config
Devendra7409 commented 2 months ago

The current character read is 'i' with an int value of 105 Unable to determine the current character, it is not a string, number, array, or object line number 1 index number 0 info Run CLI with --verbose flag for more details. ^. Output: info Run CLI with --verbose flag for more details.

i get this error ?

szymonrybczak commented 2 months ago

@Devendra7409 please run just CLI command, the output from Gradle doesn't say too much:

node /Users/Documents/project1/node_modules/@react-native-community/cli/build/bin.js config
Devendra7409 commented 2 months ago

where write this code ? like edit node module?

szymonrybczak commented 2 months ago

@Devendra7409 you need to execute a command inside a terminal and make sure that it's not failing:

npx @react-native-community/cli config