How can I change the appflow build npm ci command to use --legacy-peer-deps?

I have one package of abandon-ware that works fine with Angular 14, however, when I try and build with appflow, I’m getting a ERESOLVE could not resolve error because of the version of rxjs.

On my home system, I just npm install with --legacy-peer-deps and it works fine.

Is there any way to tell the appflow build to use --legacy-peer-deps and ignore these errors?

I fixed this by adding in a .npmrc file with the line legacy-peer-deps=true

The npm ci worked great!

1 Like