-
Notifications
You must be signed in to change notification settings - Fork 48
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
nuxi init doesn't work when selecting yarn #273
Comments
Found nodejs/help#4241. Tried Node 20.9.0 too. That fixed pnpm but not yarn. Here's what pnpm showed on 20.6.0:
|
Looks like npm works with node 20.9 too. It's just yarn that doesn't |
Hi dear @bmulholland. I am trying locally with Node 18.16, latest If you try with
This seems about env build issue. Do you have more logs? |
Hey @pi0! Nice to hear from you, hope you're well :). Thanks for the Also, BTW, if you use --no-install, cd to the dir, and set the yarn version to stable, 2/3 error messages go away -- but there's still an issue with nuxt/kit. I'm not going to dive into that here, this is already long enough :) So, some thoughts: If the generated project only works for yarn classic, then ideally the package.json would enforce that. There's ways to encode the yarn version in package.json, but actually it seems that's a feature only available in modern yarn, not yarn classic. Failing that, maybe the package manager prompt could be updated to say "yarn classic," not just "yarn"? It's not perfect but it's an improvement. Alternatively, the generated project could be updated to work with the latest yarn. (Or maybe just add that as yet another option? :). The advantage here (aside from being the latest!) is that this version of yarn has ways to set the correct version in the package.json. I think the binary is also usually included in the repo? I recognized that all of this is a bit of a PITA. (Re: the logs, I included the contents of one of the build logs: that's the second log snipped in the original post.) BTW -- I'd originally searched when I thought the issue was just "init fails," and didn't find any matches. After I'd resolved the Node issue, that narrowed it down to Yarn, and I see there's related issues for that. e.g. #217. That may have tips on how to fix the project to work on the latest. |
I ran into this issue this morning. I detailed my misadventures here: EDIT: This seemed to work once - afterwards, I get the same failing result where the page fails to render. I've tried several things to try and rectify the issue including changing node versions. Since I can reproduce this on the regular @pi0 , I'd be more than happy to submit any kind of logs / information or otherwise that can help determine the underlying cause. I suspect it is something having to do with Windows/Vite - as a consistent error message is: |
Environment
Reproduction
Run
npx nuxi@latest init nuxt3
Select any package manager
Describe the bug
It crashes.
logs are:
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: