I tried to install the Blog starter with NextJs and Strapi but got the following error:
ERR! A complete log of this run can be found in: npm ERR! /Users/YOUR_USER/.npm/_logs/2023-02-19T09_43_45_854Z-debug-0.log This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason: Error: Command failed with exit code 1: npm install npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: my-next-blog@1.0.3 npm ERR! Found: react@17.0.0 npm ERR! node_modules/react npm ERR! react@"17.0.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"^17.0.2" from next@11.1.4 npm ERR! node_modules/next npm ERR! next@"^11.0.0" from the root project npm ERR! peer next@">=10.2.0" from eslint-config-next@11.1.4 npm ERR! node_modules/eslint-config-next npm ERR! dev eslint-config-next@"^11.0.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! npm ERR! For a full report see: npm ERR! /Users/YOUR_USER/.npm/_logs/2023-02-19T09_43_45_854Z-eresolve-report.txt
It seems that that NextJs frontend requires a higher version of the React Package than the Strapi backend does.
I would suggest updating the dependencies, so that everything works again out of the box.
I tried to install the Blog starter with NextJs and Strapi but got the following error:
ERR! A complete log of this run can be found in: npm ERR! /Users/YOUR_USER/.npm/_logs/2023-02-19T09_43_45_854Z-debug-0.log This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason: Error: Command failed with exit code 1: npm install npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: my-next-blog@1.0.3 npm ERR! Found: react@17.0.0 npm ERR! node_modules/react npm ERR! react@"17.0.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"^17.0.2" from next@11.1.4 npm ERR! node_modules/next npm ERR! next@"^11.0.0" from the root project npm ERR! peer next@">=10.2.0" from eslint-config-next@11.1.4 npm ERR! node_modules/eslint-config-next npm ERR! dev eslint-config-next@"^11.0.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! npm ERR! For a full report see: npm ERR! /Users/YOUR_USER/.npm/_logs/2023-02-19T09_43_45_854Z-eresolve-report.txt
It seems that that NextJs frontend requires a higher version of the React Package than the Strapi backend does. I would suggest updating the dependencies, so that everything works again out of the box.