nuxt/cli

ERROR Error: Failed to download template from registry: Invalid URL

Opened this issue ยท 11 comments

Environment

npm nuxi info

Reproduction

Init new project using Nuxi.

npx nuxi init nuxt-auth

alan

Describe the bug

when i use
npx nuxi init nuxt-auth

get me thsi error how can fix it

Additional context

No response

Logs

No response

Tasks

No tasks being tracked yet.

Tasks

No tasks being tracked yet.

Would you be able to provide a reproduction? ๐Ÿ™

More info

Why do I need to provide a reproduction?

Reproductions make it possible for us to triage and fix issues quickly with a relatively small team. It helps us discover the source of the problem, and also can reveal assumptions you or we might be making.

What will happen?

If you've provided a reproduction, we'll remove the label and try to reproduce the issue. If we can, we'll mark it as a bug and prioritize it based on its severity and how many people we think it might affect.

If needs reproduction labeled issues don't receive any substantial activity (e.g., new comments featuring a reproduction link), we'll close them. That's not because we don't care! At any point, feel free to comment with a reproduction and we'll reopen it.

How can I create a reproduction?

We have a couple of templates for starting with a minimal reproduction:

๐Ÿ‘‰ https://stackblitz.com/github/nuxt/starter/tree/v3-stackblitz
๐Ÿ‘‰ https://codesandbox.io/s/github/nuxt/starter/v3-codesandbox

A public GitHub repository is also perfect. ๐Ÿ‘Œ

Please ensure that the reproduction is as minimal as possible. See more details in our guide.

You might also find these other articles interesting and/or helpful:

pi0 commented

@dark-noob83 Can you please share output of npx nuxi info command? Also please try with npx nuxi@latest init nuxt-auth and make sure you are not behind firewall/vpn/proxy

@pi0
this is out put
image

pi0 commented

Sorry my bad had a typo. It is npx nuxi not npx npm nuxi

Also have you tried npx nuxi@latest init nuxt-auth by any change?

@pi0
this out put
image

and nothing change

lvcq commented

same problem, giget download template failed.

------------------------------
- Operating System: Linux
- Node Version:     v20.10.0
- Nuxt Version:     3.8.1
- CLI Version:      3.10.0
- Nitro Version:    2.7.2
- Package Manager:  pnpm@8.11.0
- Builder:          -
- User Config:      -
- Runtime Modules:  -
- Build Modules:    -
------------------------------

@lvcq you fixed it ?

In my case the npx command was really coming from the GraalVM Node.js Runtime.
Resolved after I installed nuxi via npm i -g nuxi.