大家好,我一直在尝试在我的企业 PC 上配置和使用 npm,但没有成功。
我已经设置了代理,https-proxy,strict-ssl false,注册表 http://registry.npmjs.org 代理已设置为这样“ http://user:password@proxy_ip:proxy:port ” 密码有用 urlencode 编写的特殊字符。
npm config get proxy
返回具有凭据的代理,因为它们应该是。
我已经清除了我的 npm 缓存并再次尝试。
没有成功。
任何想法可能是什么问题?
原文由 AndiFB 发布,翻译遵循 CC BY-SA 4.0 许可协议
通常,当您使用公司代理时,需要添加您所在的域。鉴于字符也应该是 URL 编码的,它看起来像:
https://domain%5Cusername:password@proxy:port