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

create-astro doesn't respect proxy config via environment variables #12989

Closed
1 task
flyisland opened this issue Jan 15, 2025 · 2 comments
Closed
1 task

create-astro doesn't respect proxy config via environment variables #12989

flyisland opened this issue Jan 15, 2025 · 2 comments
Labels
ecosystem: upstream Upstream package has issue

Comments

@flyisland
Copy link

Astro Info

N/A

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

I try to create my first Astro project by following the web page https://docs.astro.build/en/tutorial/1-setup/2/, but pnpm create astro@latest --template minimal failed with error Unable to connect to the internet. as below:

export http_proxy=http://127.0.0.1:1087;export https_proxy=http://127.0.0.1:1087;export ALL_PROXY=socks5://127.0.0.1:1080
❯ pnpm create astro@latest -h

 create-astro   v4.11.0 Scaffold Astro projects.

create-astro [dir] [...flags]

             --help (-h)  See all available flags.
       --template <name>  Specify your template.
--install / --no-install  Install dependencies (or not).
    --add <integrations>  Add integrations.
        --git / --no-git  Initialize git repo (or not).
              --yes (-y)  Skip all prompts by accepting defaults.
               --no (-n)  Skip all prompts by declining defaults.
               --dry-run  Walk through steps without executing.
          --skip-houston  Skip Houston animation.
                   --ref  Choose astro branch (default: latest).
                 --fancy  Enable full Unicode support for Windows.

❯ pnpm create astro@latest --template minimal

 astro  Launch sequence aborted.

      ▲  error Unable to connect to the internet.
❯ curl -I https://registry.npmjs.org/create-astro
HTTP/1.1 200 Connection established

HTTP/2 200
date: Wed, 15 Jan 2025 13:47:57 GMT
content-type: application/json
cf-ray: 902652159e849696-KIX
cf-cache-status: HIT
accept-ranges: bytes
access-control-allow-origin: *
age: 156
cache-control: public, max-age=300
etag: "cc074233af794d41315fde5d730c0f3d"
last-modified: Tue, 03 Dec 2024 10:57:55 GMT
vary: accept-encoding, accept
set-cookie: _cfuvid=Zu0X_06rMygGO8L5vODOgumI4CG9peN2OfGn8GmaCQA-1736948877724-0.0.1.1-604800000; path=/; domain=.npmjs.org; HttpOnly; Secure; SameSite=None
server: cloudflare

❯ node -v
v22.11.0

What's the expected result?

create a minimal astro project as expected

Link to Minimal Reproducible Example

N/A

Participation

  • I am willing to submit a pull request for this issue.
@github-actions github-actions bot added the needs triage Issue needs to be triaged label Jan 15, 2025
@bluwy
Copy link
Member

bluwy commented Jan 15, 2025

ref #5256, bluwy/giget-core#2

@florian-lefebvre florian-lefebvre added ecosystem: upstream Upstream package has issue and removed needs triage Issue needs to be triaged labels Jan 15, 2025
@flyisland
Copy link
Author

@bluwy thanks for the quick prompt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ecosystem: upstream Upstream package has issue
Projects
None yet
Development

No branches or pull requests

3 participants