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

autolinkLibrariesFromCommand: process cmd /c npx @react-native-community/cli config exited with error code: 1 #2532

Open sarwanand24 opened 1 month ago

sarwanand24 commented 1 month ago

Settings file 'D:\Tiofy(All Services)\Tiofy\android\settings.gradle' line: 3 A problem occurred evaluating settings 'android'. > ERROR: autolinkLibrariesFromCommand: process cmd /c npx @react-native-community/cli config exited with error code: 1

Below is my settings.gradle file

pluginManagement { includeBuild("../node_modules/@react-native/gradle-plugin") } plugins { id("com.facebook.react.settings") } extensions.configure(com.facebook.react.ReactSettingsExtension){ ex -> ex.autolinkLibrariesFromCommand() } rootProject.name = 'Tiofy' include ':app' includeBuild('../node_modules/@react-native/gradle-plugin')

xiangjiu0918 commented 2 weeks ago

i have received same problem

ReactNativ commented 1 week ago

I fixed it by deleting the node_modules folder and yarn.lock file, then running yarn to reinstall dependencies. This often clears up any conflicts. Let me know if this helps!