precedent icon indicating copy to clipboard operation
precedent copied to clipboard

[email protected] causing a dependency tree resolution error

Open egilll opened this issue 2 years ago • 4 comments

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.

egilll avatar Apr 29 '23 08:04 egilll

got same problem

godxtriedcode avatar Apr 29 '23 16:04 godxtriedcode

same problem and I do not understand how to bypass

egorkaway avatar Nov 04 '23 21:11 egorkaway

@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 avatar Nov 04 '23 21:11 egilll

@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

Console log

andriilive avatar Nov 16 '23 03:11 andriilive