strapi / strapi-starter-next-corporate

Next.js starter for creating a corporate site with Strapi.
https://strapi-starter-next-corporate.vercel.app
MIT License
346 stars 95 forks source link

Error while running CLI starter #54

Open aivannikov opened 3 years ago

aivannikov commented 3 years ago

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: cms-strapi@1.0.0 npm ERR! Found: next@11.0.1 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 next-seo@4.7.1 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

DevDaveJ commented 3 years ago

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.

Saad-ISAA commented 3 years ago

can you please mention the environment details to reproduce ?

OS node version

DevDaveJ commented 3 years ago

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

Saad-ISAA commented 3 years ago

I'll reproduce in the same environment and revert back

DevDaveJ commented 3 years ago

I'll reproduce in the same environment and revert back

Ok. Any update on this?

DevDaveJ commented 3 years ago

strapi-starter

nathan1505 commented 2 years ago

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

OlympicLarry commented 2 years ago

Try with Node 12.

ZodiacWind commented 2 years ago

I have encountered the same issue

npoch commented 2 years ago

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

Mead42 commented 2 years ago

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

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