So I have two packages in my project with conflicting peer dependency. One of the deps is only supporting react^16.14.0.
So I managed to get it to work locally by using npm install --legacy-peer-deps
, but how can I use this command when I deploy my project to Google Cloud App Engine? App Engine install fails with Could not resolve dependency.
CodePudding user response:
For me, I got this working by creating .npmrc
in the root of my project. And adding legacy-peer-deps=true
in the file. Source