Skip to content
This repository has been archived by the owner on Apr 4, 2022. It is now read-only.

Error while running CLI starter #54

Open
aivannikov opened this issue Aug 8, 2021 · 11 comments
Open

Error while running CLI starter #54

aivannikov opened this issue Aug 8, 2021 · 11 comments

Comments

@aivannikov
Copy link

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

@DevDaveJ
Copy link

DevDaveJ commented Aug 8, 2021

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
Copy link

can you please mention the environment details to reproduce ?

OS
node version

@DevDaveJ
Copy link

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
Copy link

I'll reproduce in the same environment and revert back

@DevDaveJ
Copy link

I'll reproduce in the same environment and revert back

Ok. Any update on this?

@DevDaveJ
Copy link

strapi-starter

@nathan1505
Copy link

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
Copy link

Try with Node 12.

@ZodiacWind
Copy link

I have encountered the same issue

@npoch
Copy link

npoch commented Oct 3, 2021

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

@Mead42
Copy link

Mead42 commented Jan 8, 2022

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

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants