简体   繁体   中英

Downloading Stencil behind corporate proxy

I'm trying to start my first Stencil project and am seeing this error:

 Cannot download "https://github.com/ionic-team/stencil- 
 component-starter/archive/master
 .zip"
 Check your internet connection

 Error: connect ETIMEDOUT"

I have both my git config and npm config http and https proxy settings correctly pointing to my proxy url but I'm still getting this error. Why?

Thanks for any helpful tips.

您可以直接通过代理卷曲相同的拉链吗?

curl -x http://proxy_server:proxy_port --proxy-user username:password -L "https://github.com/ionic-team/stencil-component-starter/archive/master.zip"

I have the exact same limitation at work.

Do a curl -kvL , that will give you an idea of what is actually blocked:

curl -kvL https://github.com/go-gitea/gitea/releases/download/v1.9.1/gitea-1.9.1-windows-4.0-amd64.exe.xz
...
CONNECT github-production-release-asset-2e65be.s3.amazonaws.com:443 HTTP/1.1
...
HTTP/1.1 403 Forbidden

What is usually blocked in an enterprise environment is s3.amazonaws.com .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM