尝试安装 VSCODE 扩展时获取连接 ETIMEDOUT [英] Getting connect ETIMEDOUT when trying to install a VSCODE extension
问题描述
当我尝试从市场安装 VSCODE 扩展时,我得到了连接 ETIMEDOUT xxx.xxx.xxx.xxx:443 可能是由于公司防火墙限制.
When trying to install a VSCODE extension from the marketplace, I'm getting connect ETIMEDOUT xxx.xxx.xxx.xxx:443 possibly due to company firewall restrictions.
有没有办法从本地驱动器下载和安装扩展程序?我在 VSCODE 市场上找不到下载"选项.
Is there a way to download and install extensions from a local drive? I couldn't find a "download" option on the VSCODE marketplace.
推荐答案
您需要将您的公司代理添加到 VSCode 设置中.
You need to add your corporate proxy to VSCode settings.
第 1 步.打开文件>首选项>用户设置
Step 1. Open File > Preferences > User Settings
第 2 步.
将下面复制并粘贴到 settings.json(打开的文件)中,确保在大括号内 {}
Copy and Paste below into the settings.json (file that opens) make sure is inside the curly brackets {}
//-------- HTTP configuration --------
// The proxy setting to use. If not set will be taken from the http_proxy and https_proxy environment variables
"http.proxy": "http://127.0.0.1:8080", //your corporate proxy
// Whether the proxy server certificate should be verified against the list of supplied CAs.
"http.proxyStrictSSL": false
第 3 步.按 F1 并输入 Reload Window 并按 Enter 刷新.
Step 3. Press F1 and type Reload Window and press enter to refresh.
提示:如果您不知道您的公司代理设置,请按照此操作建议:https://superuser.com/questions/346372/how-do-i-know-what-proxy-server-im-using
Tip: if you don't know your corporate proxy settings, follow this advice: https://superuser.com/questions/346372/how-do-i-know-what-proxy-server-im-using
这篇关于尝试安装 VSCODE 扩展时获取连接 ETIMEDOUT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!