One thing you can try is to modify the app_build_command
to npm install
instead of install --legacy-peer-deps
. This should work as Oryx automatically adds the --legacy-peer-deps
flag when running npm install
.
If this does not work, you can try adding a custom command to your pipeline to run npm install --legacy-peer-deps
before building your application. Here is an example of how you can modify your pipeline to include this command:
- script: |
npm install --legacy-peer-deps
npm run build
displayName: 'npm install and build'
This will run npm install --legacy-peer-deps
to install the dependencies with legacy peer dependencies and then run npm run build
to build your application.
Please reply back to this answer if you have any questions or if the above suggestions did not work.