withastro / astro

The web framework for content-driven websites. ⭐️ Star to support our work!
https://astro.build
Other
46.81k stars 2.49k forks source link

CLI failed to install new project #12183

Closed bumpyy closed 1 month ago

bumpyy commented 1 month ago

Astro Info

-

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

The CLI failed to install new project.

cli always error on project init: image

For context i'm using windows nvm via Laravel herd, idk if this is the problem because my other machine has no issue (not using Herd), but i've tried turn off nvm, herd, and install node manually, even clear cache folder, but no change.

the log are as follows:

image

for the manually installed node are as follows:

image

What's the expected result?

Astro CLI successfully generated new project.

Link to Minimal Reproducible Example

-

Participation

bluwy commented 1 month ago

Is this your first time running the CLI or has it worked in the past for you? We recently updated it with a new deoendency and I wonder if it caused a regression (it shouldn't have though as long as you're using node18, which your logs shown as 20 & 22). I tested locally with the latest CLI (on macos) and it seems to still work fine.

bumpyy commented 1 month ago

I've used it before, no issues Though I haven't use herd yet back then.

I've also tried using node 18 but still the same.

I'll try to uninstall herd first thing in the morning to see if it works.

bumpyy commented 1 month ago

I've used it before, no issues Though I haven't use herd yet back then.

I've also tried using node 18 but still the same.

I'll try to uninstall herd first thing in the morning to see if it works.

Nope, not herd I've also removed pnpm & bun but still error.

bumpyy commented 1 month ago

I think this is create-astro issue ?, but that doesn't explain why it works on my other windows machine.

I tried to create a Vite project, Nextjs, & Nuxt, and they are working perfectly.

I'll keep trying.

I'm using windows 10 btw.

bumpyy commented 1 month ago

Hey @bluwy just an update,

I just updated to create-astro@4.10.0 and it's working now using herd (nvm) and regular node install.

image