strapi-starter-next-corporate icon indicating copy to clipboard operation
strapi-starter-next-corporate copied to clipboard

Error while running CLI starter

Open aivannikov opened this issue 2 years ago • 11 comments

While running the following command npx create-strapi-starter my-site next-corporate I get the following error:

Installing strapi/strapi-starter-next-corporate starter ⠸ Installing dependencies: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: [email protected] npm ERR! Found: [email protected] npm ERR! node_modules/next npm ERR! next@"^11.0.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer next@"^8.1.1-canary.54 || ^9.0.0" from [email protected] npm ERR! node_modules/next-seo npm ERR! next-seo@"^4.7.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 /home/alex/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in: npm ERR! /home/alex/.npm/_logs/2021-08-08T10_05_53_062Z-debug.log at makeError (/home/alex/.npm/_npx/ecd569b0a81a6814/node_modules/execa/lib/error.js:59:11) at handlePromise (/home/alex/.npm/_npx/ecd569b0a81a6814/node_modules/execa/index.js:114:26) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async installWithLogs (/home/alex/.npm/_npx/ecd569b0a81a6814/node_modules/create-strapi-starter/utils/build-starter.js:82:3) at async buildStarter (/home/alex/.npm/_npx/ecd569b0a81a6814/node_modules/create-strapi-starter/utils/build-starter.js:151:3) ⠹ Installing dependencies: ERR! A complete log of this run can be found in: npm ERR! /home/alex/.npm/_logs/2021-08-08T10_05_53_062Z-debug.log

Please, help how to resolve

aivannikov avatar Aug 08 '21 10:08 aivannikov

Exactly the same bug.

My setup is a custom install of the starter because Im using postgres. backend installs fine, frontend bugs out with the same error as above.

DevDaveJ avatar Aug 08 '21 19:08 DevDaveJ

can you please mention the environment details to reproduce ?

OS node version

Saad-ISAA avatar Aug 09 '21 17:08 Saad-ISAA

can you please mention the environment details to reproduce ?

OS node version

in my case: Git for Windows v2.29.1 node version 14.15.4 Windows 10 64bit

DevDaveJ avatar Aug 10 '21 00:08 DevDaveJ

I'll reproduce in the same environment and revert back

Saad-ISAA avatar Aug 10 '21 05:08 Saad-ISAA

I'll reproduce in the same environment and revert back

Ok. Any update on this?

DevDaveJ avatar Aug 12 '21 22:08 DevDaveJ

strapi-starter

DevDaveJ avatar Aug 17 '21 08:08 DevDaveJ

I have the exact same bug while running the command. Here is my environment: Git for Windows v2.33.0 node version 14.17.4 Windows 10 64bit

nathan1505 avatar Sep 19 '21 14:09 nathan1505

Try with Node 12.

OlympicLarry avatar Sep 28 '21 01:09 OlympicLarry

I have encountered the same issue

ZodiacWind avatar Sep 30 '21 15:09 ZodiacWind

I just ran npm update and re-ran npm run dev and it started working.

npoch avatar Oct 03 '21 00:10 npoch

Looks like the next-seo package isn't compatible with NextJS 11.

Try running: npm install --legacy-peer-deps

Mead42 avatar Jan 08 '22 04:01 Mead42