-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 system proxy config or environment variables
#5256
Comments
Thanks for reporting @yonkeltron! Dang, this is indeed a tricky one to replicate. I'll say we use giget under-the-hood to fetch project templates, so that project would likely need tweaks to respect environment variables for network proxies. May be worth:
Hope that helps! |
There's actually an upstream issue for this feature, as well as a PR! |
This has been merged and released in |
Super exciting! Let me know when I can give |
Hey just wanted to let you know that |
Just a bit more info here:
|
FYI I can reproduce this error still in the 2.0 release.
|
Just an update that this still fails with
|
I can confirm this issue still exists on the latest version (2.5.7 as of this post). This issue should be re-opened. |
Specifically this is failing with |
Can confirm this is still an issue with $ create-astro
╭─────╮ Houston:
│ ◠ ◡ ◠ Initiating launch sequence...
╰─────╯
astro v2.6.0 Launch sequence initiated.
dir Where should we create your new project?
./panda
tmpl How would you like to start your new project?
Include sample files
▲ error Failed to download https://github.com/withastro/astro/archive/latest.tar.gz: 401 authenticationrequired |
I can confirm this is still an issue with create-astsro@4.3.2 npm create astro@latest -- --template starlight
astro Launch sequence aborted.
▲ error Unable to connect to the internet. |
this is an issue for me with npm create astro@latest I am behind a corporate firewall and using an internal registry which is set in the .npmrc |
What version of
astro
are you using?1.6.1
Are you using an SSR adapter? If so, which one?
No
What package manager are you using?
yarn
What operating system are you using?
macOS
Describe the Bug
I am unable to initialize a new project with
astro-create
due to it not following the system proxy settings or respecting the proxy environment variables I have in place.The following variables are set:
Eager to help understand what's wrong, unfortunately I can't create a minimal example due to it being isolated to the corporate network I'm currently on. Sorry!
How else can I test or provide more info?
Link to Minimal Reproducible Example
N/A
Participation
The text was updated successfully, but these errors were encountered: