react-native-community / cli

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

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

Open sarwanand24 opened 3 weeks ago

sarwanand24 commented 3 weeks 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 1 week ago

i have received same problem

ReactNativ commented 2 days 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!