withastro / astro

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

create-astro does not work #11396

Closed christianahvilla closed 22 hours ago

christianahvilla commented 4 weeks ago

Astro Info

Astro                    v4.11.3
Node                     v20.3.0
System                   Linux (x64)
Package Manager          unknown
Output                   static
Adapter                  none
Integrations             none

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

No response

Describe the Bug

When I run npm create astro@latest and follow the instructions, I get the following error and the installation fails:

astro   Launch sequence initiated.

╭─────╮  Houston:
│ ◠ ◡ ◠  I'll be your assistant today.

 astro   Launch sequence initiated.

   dir   Where should we create your new project?
         ./regular-resonance

  tmpl   How would you like to start your new project?
         Include sample files

    ts   Do you plan to write TypeScript?
         Yes

   use   How strict should TypeScript be?
         Strict

  deps   Install dependencies?
         Yes

   git   Initialize a new git repository?
         Yes

 ██████  Project initializing...
         ▶ Template copying...
         □ TypeScript
         □ Dependencies
         □ Git
      ▲  error fetch failed

What's the expected result?

An Astro project was created correctly

Link to Minimal Reproducible Example

no avaiable

Participation

lkzwc commented 3 weeks ago

什么问题呀 感觉挂了么 image

christianahvilla commented 3 weeks ago

什么问题呀 感觉挂了么 image

I have the same issue, I tried on another WSL, on my local machine but they did not work, what processor do you have?

florian-lefebvre commented 3 weeks ago

Maybe linked to #11314

Princesseuh commented 1 week ago

It's hard to tell what the underlying issue is here, and probably that it's not really fixable (firewall things, connection issues etc), but we should surface the error better.

Thiago2104 commented 1 week ago

I have the same issue, I tried with node v18.17.1, windows and it stays loading in the template copying with every option (use sample files, use blog template and empty). Also tried with npm create astro@4 (it installed version 4.8) to check an older version, with the same result.