在公司代理后面下载 Stencil
Downloading Stencil behind corporate proxy
我正在尝试开始我的第一个 Stencil 项目,但我看到了这个错误:
Cannot download "https://github.com/ionic-team/stencil-
component-starter/archive/master
.zip"
Check your internet connection
Error: connect ETIMEDOUT"
我的 git 配置和 npm 配置 http 和 https 代理设置都正确指向我的代理 url 但我仍然收到此错误。为什么?
感谢您提供任何有用的提示。
你能直接通过你的代理卷曲同一个 zip 吗?
curl -x http://proxy_server:proxy_port --proxy-user username:password -L "https://github.com/ionic-team/stencil-component-starter/archive/master.zip"
我在工作中遇到了完全相同的限制。
做一个 curl -kvL
,这会让您了解实际被阻止的内容:
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
在企业环境中通常被阻止的是s3.amazonaws.com
。
我正在尝试开始我的第一个 Stencil 项目,但我看到了这个错误:
Cannot download "https://github.com/ionic-team/stencil-
component-starter/archive/master
.zip"
Check your internet connection
Error: connect ETIMEDOUT"
我的 git 配置和 npm 配置 http 和 https 代理设置都正确指向我的代理 url 但我仍然收到此错误。为什么?
感谢您提供任何有用的提示。
你能直接通过你的代理卷曲同一个 zip 吗?
curl -x http://proxy_server:proxy_port --proxy-user username:password -L "https://github.com/ionic-team/stencil-component-starter/archive/master.zip"
我在工作中遇到了完全相同的限制。
做一个 curl -kvL
,这会让您了解实际被阻止的内容:
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
在企业环境中通常被阻止的是s3.amazonaws.com
。