support http proxy when using `nuxi init`
See original GitHub issueEnvironment
- 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:
- Created a year ago
- Comments:13 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In china, I succeeded
Just set DNS 114.114.114.114
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.