I am trying to build my react native app from App Center. I have dependency conflicts, while running in VSCode I use the command "npm install –legacy-peer-deps" but in App center, how do I configure the same command not just npm install so that node_modules are generated and build does not fail? Thanks in advance!
I found this article but it did not make complete sense to me.
https://learn.microsoft.com/en-us/appcenter/build/custom/scripts/
2
Answers
I suppose that you have been encountered with the dependency conflicts issue.
This is a dependency issue, you can ignore it and install npm packages by adding command –force or –legacy-peer-deps
npm install react-rating-tooltip --force
You can add an
.npmrc
file to the root of your project, and include this line:legacy-peer-deps=true
This gives context to the build process about your preferences for npm.