The error is a peer dependency conflict relating to versions of react, which provides guidance on how you can attempt to resolve it:
11:06:39 AM: npm ERR! Fix the upstream dependency conflict, or retry
11:06:39 AM: npm ERR! this command with --force, or --legacy-peer-deps
11:06:39 AM: npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
It suggests you can run npm install --force
or npm install --legacy-peer-deps
.
To do this on Netlify you can use the NPM_FLAGS environment variable.
NPM_FLAGS: used to indicate the flags to pass to the npm install command.
Setting it to either --force
or --legacy-peer-deps
depending on your preference.