cli icon indicating copy to clipboard operation
cli copied to clipboard

`nuxi init` results in 404

Open Jos620 opened this issue 11 months ago • 4 comments

The command nuxi init results in the following error:

Need to install the following packages:
[email protected]
Ok to proceed? (y)


[nuxi 11:28:51 AM]  ERROR  Error: Failed to download template from registry: Failed to download v3 template info from https://raw.githubusercontent.com/nuxt/starter/templates/templates/v3.json: 404 Not Found

This issue was already created but closed before had a solution: #456.

npx nuxi info output:

------------------------------
- Operating System: Darwin
- Node Version:     v22.13.0
- Nuxt Version:     -
- CLI Version:      3.21.1
- Nitro Version:    -
- Package Manager:  [email protected]
- Builder:          -
- User Config:      -
- Runtime Modules:  -
- Build Modules:    -
------------------------------

My machine is able to access the template file since running:

node -e "fetch('https://raw.githubusercontent.com/nuxt/starter/templates/templates/v3.json').then(r => r.json()).then(console.log)"

Results in:

{
  name: 'v3',
  defaultDir: 'nuxt-app',
  url: 'https://nuxt.com',
  tar: 'https://codeload.github.com/nuxt/starter/tar.gz/refs/heads/v3'
}

Jos620 avatar Feb 01 '25 14:02 Jos620

I did some testing. I'm able to create a project using [email protected]. Any version after this one results in the 404 error.

Jos620 avatar Feb 01 '25 14:02 Jos620

Update: the same issue still happens when creating with the new npm create nuxt@latest. This is the output I got:

> npx
> create-nuxt


        .d$b.
       i$$A$$L  .d$b
     .$$F` `$$L.$$A$$.
    j$$'    `4$$:` `$$.
   j$$'     .4$:    `$$.
  j$$`     .$$:      `4$L
 :$$:____.d$$:  _____.:$$:
 `4$$$$$$$$P` .i$$$$$$$$P`

ℹ Welcome to Nuxt!                                                                                              nuxi  12:44:33 AM

✔ Where would you like to create your project?
nuxt-app
ℹ Creating a new project in nuxt-app.                                                                           nuxi  12:44:34 AM

[ nuxi  12:44:34 AM]  ERROR  Error: Failed to download template from registry: Failed to download v3 template info from https://raw.githubusercontent.com/nuxt/starter/templates/templates/v3.json: 404 Not Found

Jos620 avatar Mar 19 '25 03:03 Jos620

Do you have any system-wide proxy configuration?

danielroe avatar Mar 31 '25 11:03 danielroe

No. I even formatted my laptop a few days ago, but the issue still happens. I also tried using different Wi-Fi networks (this is the notebook I carry everywhere), but still no luck.

Jos620 avatar Apr 01 '25 10:04 Jos620