while installing next following error occur

Viewed 14

npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: react-sticky-box@0.9.3 npm ERR! Found: react@17.0.2 npm ERR! node_modules/react npm ERR! peer react@"^16 || ^17 || ^18" from @headlessui/react@1.4.0 npm ERR! node_modules/@headlessui/react npm ERR! @headlessui/react@"^1.4.0" from the root project npm ERR! peer react@"^17.0.2" from @next/react-dev-overlay@11.1.0 npm ERR! node_modules/@next/react-dev-overlay npm ERR! @next/react-dev-overlay@"11.1.0" from next@11.1.0 npm ERR! node_modules/next npm ERR! next@"11.1.0" from the root project npm ERR! 3 more (next-i18next, next-pwa, next-seo) npm ERR! 25 more (@reach/portal, @reach/utils, framer-motion, nano-css, ...) npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"^0.14.0 || ^15.0.0 || ^16.0.0" from react-sticky-box@0.9.3 npm ERR! node_modules/react-sticky-box npm ERR! react-sticky-box@"^0.9.3" from the root project npm ERR! npm ERR! Conflicting peer dependency: react@16.14.0 npm ERR! node_modules/react npm ERR! peer react@"^0.14.0 || ^15.0.0 || ^16.0.0" from react-sticky-box@0.9.3 npm ERR! node_modules/react-sticky-box npm ERR! react-sticky-box@"^0.9.3" 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 C:\Users\mehbo\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\mehbo\AppData\Local\npm-cache_logs\2022-09-12T18_10_25_229Z-debug-0.log

0 Answers
Related