Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[email protected] causing a dependency tree resolution error #47

Open
egilll opened this issue Apr 29, 2023 · 4 comments
Open

[email protected] causing a dependency tree resolution error #47

egilll opened this issue Apr 29, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@egilll
Copy link

egilll commented Apr 29, 2023

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.

@maige-app maige-app bot added the bug Something isn't working label Apr 29, 2023
@godxtriedcode
Copy link

got same problem

@egorkaway
Copy link

same problem and I do not understand how to bypass

@egilll
Copy link
Author

egilll commented Nov 4, 2023

@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.

@andriilive
Copy link

@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 added a commit to andriilive/precedent that referenced this issue Nov 16, 2023
Improved installation docs due to
steven-tey#47

- yarn, pnpm, bun starters
- npm install fails warning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants