Error to accept an incorrect (and potentially broken) dependency resolution.

We fix the error that occurs when running the npm install command.

When running the command:

Errors of this kind occur:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: autoprefixer@9.8.6
npm ERR! node_modules / autoprefixer
npm ERR! dev autoprefixer @ “^ 10.3.1 ″ from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! dev autoprefixer @ “^ 10.3.1 ″ from the root project
npm ERR!
npm ERR! Conflicting peer dependency: postcss@8.3.6
npm ERR! node_modules / postcss
npm ERR! peer postcss @ “^ 8.1.0 ″ from autoprefixer@10.3.1
npm ERR! node_modules / autoprefixer
npm ERR! dev autoprefixer @ “^ 10.3.1 ″ from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with -force, or -legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /Users/User/.npm/eresolve-report.txt for a full report.

Solution:

npm install –legacy-peer-deps

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *