Skip to content
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 -t 404s on nuxt.json #456

Closed
davidjbradshaw opened this issue Aug 5, 2024 · 7 comments
Closed

Nuxi init -t 404s on nuxt.json #456

davidjbradshaw opened this issue Aug 5, 2024 · 7 comments

Comments

@davidjbradshaw
Copy link

davidjbradshaw commented Aug 5, 2024

When I run nuxi init -t it fails as follows.

 % npx nuxi init -t my-project
Need to install the following packages:
nuxi@3.12.0
Ok to proceed? (y) 


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

Looking at the template it indeed does not contain the file that fails to be found here.

@kiarashmankouei
Copy link

kiarashmankouei commented Aug 31, 2024

hi please use "npx nuxi info" to have version of node and nuxt .

@kiarashmankouei
Copy link

kiarashmankouei commented Aug 31, 2024

i use nuxi 3.11 and works for me try " npx nuxi@3.11.0 init ".

@Jos620
Copy link

Jos620 commented Sep 6, 2024

Same problem here.

npx nuxi info outputs:

- Operating System: `Darwin`
- Node Version:     `v18.20.3`
- Nuxt Version:     `-`
- CLI Version:      `3.13.1`
- Nitro Version:    `-`
- Package Manager:  `unknown`
- Builder:          `-`
- User Config:      `-`
- Runtime Modules:  `-`
- Build Modules:    `-`

Running with version 3.11 didn't work as well.

@danielroe
Copy link
Member

-t is meant to point to the path of a template (for example, on github, with something like -t gh:danielroe/template).

In your case, just run npx nuxi init my-project

@danielroe danielroe closed this as not planned Won't fix, can't repro, duplicate, stale Oct 22, 2024
@Jos620
Copy link

Jos620 commented Oct 22, 2024

@danielroe running npx nuxi init my-project throws the exact same error:

Image

@danielroe
Copy link
Member

try npx nuxi@latest init nuxt-app

@Jos620
Copy link

Jos620 commented Oct 23, 2024

npx nuxi@latest init nuxt-app raises the same error.

I thought it was some network issue in my machine, but running:

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

Seem to find this:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants