[email protected] causing a dependency tree resolution error
Hi. Following the change in 2d444cf, the default setup instructions (npx create-next-app precedent --example "https://github.com/steven-tey/precedent") no longer work on Node v19.7.0, with the following error showing up:
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@"13.3.1-canary.11" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer next@"^12.2.5 || ^13" from [email protected]
I can bypass the error by going into the folder and yarn install-ing there.
got same problem
same problem and I do not understand how to bypass
@egorkaway, run npx create-next-app precedent --example "https://github.com/steven-tey/precedent", then cd precedent and yarn install, i.e. the solution is to use Yarn instead of Npm.
@egilll any valuable reason using npx so?
I'd rather sticked to yarn create or other corresponding create-next-app starter
Succed ✅
yarn create next-app --example "https://github.com/steven-tey/precedent" precedent_yarn
pnpm create next-app --example "https://github.com/steven-tey/precedent" precedent_pnpm
bunx create-next-app --example "https://github.com/steven-tey/precedent" precedent_bun
Failed ❌
npx create-next-app --example "https://github.com/steven-tey/precedent" precedent_npx
npx create-next-app@latest --example "https://github.com/steven-tey/precedent" precedent_npx_latest