question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

support http proxy when using `nuxi init`

See original GitHub issue

Environment


  • Operating System: Darwin
  • Node Version: v16.17.0
  • Nuxt Version: 0.0.0
  • Nitro Version: -
  • Package Manager: unknown
  • Builder: webpack
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

Not exist

Describe the bug

 ERROR  Failed to download template from registry: request to https://raw.githubusercontent.com/nuxt/starter/templates/templates/v3.json failed, reason: connect ECON3

  at /Users/xdclass/.npm/_npx/a95e0f536cf9a537/node_modules/nuxi/dist/chunks/init.mjs:13269:11
  at processTicksAndRejections (node:internal/process/task_queues:96:5)
  at async downloadTemplate (/Users/xdclass/.npm/_npx/a95e0f536cf9a537/node_modules/nuxi/dist/chunks/init.mjs:13268:20)
  at async Object.invoke (/Users/xdclass/.npm/_npx/a95e0f536cf9a537/node_modules/nuxi/dist/chunks/init.mjs:13336:15)
  at async _main (/Users/xdclass/.npm/_npx/a95e0f536cf9a537/node_modules/nuxi/dist/cli.mjs:50:20)

Additional context

curl https://raw.githubusercontent.com/nuxt/starter/templates/templates/v3.json

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

Everything works fine when I request the URL directly, I think this might be a bug in nuxt.

Logs

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

7reactions
codingcncommented, Nov 3, 2022

In china, I succeeded

Just set DNS 114.114.114.114

4reactions
yonhungcommented, Nov 3, 2022

I got the same error. It worked for me after I added raw.githubusercontent.com Ip address to my Windows hosts file. It seems a firewall dns cache pollution problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I pull from a Git repository through an HTTP proxy?
As long as the specified proxy server supports http, and https, then one entry in the config file will suffice. You can then...
Read more >
Configuring an HTTP proxy | LumenVox Knowledgebase
LumenVox supports the use of special Environment Variables to control the use of an HTTP proxy. These environment variable settings work for both...
Read more >
HTTP proxy configuration - Amazon Elastic Container Service
You can configure your Amazon ECS container instances to use an HTTP proxy for both the Amazon ECS container agent and the Docker...
Read more >
How to Set Up Squid Proxy for Private Connections on Ubuntu ...
For example, you can use a proxy server to make web requests from a different IP ... squid.service - Squid Web Proxy Server...
Read more >
How to make ALEE on Linux connect via forward HTTPS proxy
ALEE service on a Linux OS; Web proxy for Internet connection ... To set the HTTP proxy (for example, 10.0.0.1:3128) to use with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found