我处于巨大而卑鄙的公司防火墙后面。除 8080 和 1080 端口可通过 HTTP、HTTPS 和 SOCKS 外,其他端口均已关闭。
Curl 可与导出 https_proxy:proxy_port
配合使用。
Meteor meteor 添加包
失败并显示
Unable to update package catalog (are you offline?)
=> Errors while parsing arguments:
While adding package accounts-passwords:
error: no such package
Your package catalog may be out of date.
Please connect to the internet and try again.
如何解决?
最佳答案
您可以使用 HTTP_PROXY
和 HTTPS_PROXY
环境变量在企业防火墙后面使用 Meteor。
来自https://github.com/meteor/meteor/wiki/Using-Meteor-behind-a-proxy
示例:
在 Linux 或 Mac OS X 上导出HTTP_PROXY=http://user:password@1.2.3.4:5678 export
HTTPS_PROXY=http://user:password@1.2.3.4:5678 meteor update
在 Windows 上
SET HTTP_PROXY=http://user:password@1.2.3.4:5678 SET
HTTPS_PROXY=http://user:password@1.2.3.4:5678 meteor update
关于macos - Meteor 无法更新包目录。代理问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28874070/