(note that $node-sass can be replaced with the actual version number, this just picks it up from the current package.json)
Note: another option would have been NPM --force or --legacy-peer-deps but both are quite "aggressive" and potentially introduce unwanted consequences.
Temporary fix: using https://docs.npmjs.com/cli/v10/configuring-npm/package-json#overrides
package.json
:(note that
$node-sass
can be replaced with the actual version number, this just picks it up from the currentpackage.json
)Note: another option would have been NPM
--force
or--legacy-peer-deps
but both are quite "aggressive" and potentially introduce unwanted consequences.Note: another option would have been https://www.npmjs.com/package/npm-force-resolutions or https://www.npmjs.com/package/force-resolutions but these not-so-well-maintained packages introduce a NPM
preinstall
script which may pose security issues in the future (IMO).