D:\review\project>npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: project@1.0.29
npm ERR! Found: react@17.0.2
npm ERR! node_modules/react
npm ERR! dev react@"^17.0.2" from the root project
npm ERR! peer react@"^16" from react-mathjax-preview@2.2.4
npm ERR! node_modules/react-mathjax-preview
npm ERR! dev react-mathjax-preview@"^2.2.4" 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.
In my project, I am facing this issue
D:\review\project>npm install npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: project@1.0.29 npm ERR! Found: react@17.0.2 npm ERR! node_modules/react npm ERR! dev react@"^17.0.2" from the root project npm ERR! peer react@"^16" from react-mathjax-preview@2.2.4 npm ERR! node_modules/react-mathjax-preview npm ERR! dev react-mathjax-preview@"^2.2.4" 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.