`nuxi init` results in 404
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'
}
I did some testing. I'm able to create a project using [email protected]. Any version after this one results in the 404 error.
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
Do you have any system-wide proxy configuration?
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.