cli icon indicating copy to clipboard operation
cli copied to clipboard

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

Open dark-noob83 opened this issue 2 years ago • 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
### Tasks

dark-noob83 avatar Nov 24 '23 13:11 dark-noob83

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:

github-actions[bot] avatar Nov 24 '23 13:11 github-actions[bot]

@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 avatar Nov 24 '23 13:11 pi0

@pi0 this is out put image

dark-noob83 avatar Nov 24 '23 13:11 dark-noob83

@pi0 image

dark-noob83 avatar Nov 24 '23 13:11 dark-noob83

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 avatar Nov 24 '23 14:11 pi0

@pi0

dark-noob83 avatar Nov 24 '23 15:11 dark-noob83

@pi0 this out put image

and nothing change

dark-noob83 avatar Nov 24 '23 15:11 dark-noob83

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:  [email protected]
- Builder:          -
- User Config:      -
- Runtime Modules:  -
- Build Modules:    -
------------------------------

lvcq avatar Nov 27 '23 15:11 lvcq

@lvcq you fixed it ?

dark-noob83 avatar Nov 27 '23 20:11 dark-noob83

Screenshot (65)

Itssssaryan avatar Feb 06 '24 02:02 Itssssaryan

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.

o-nix avatar May 07 '24 18:05 o-nix

let's track in https://github.com/nuxt/cli/issues/288

danielroe avatar Aug 29 '24 10:08 danielroe