407认证需要npm [英] 407 Authentication required npm

查看:50
本文介绍了407认证需要npm的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我一直在尝试在我的企业 PC 上配置和使用 npm,但没有成功.

Hello everyone I´ve been trying to configure and use npm on my enterprise PC without success.

我设置了代理、https-proxy、strict-ssl false、registry http://registry.npmjs.org代理已设置为http://user:password@proxy_ip:proxy:port"其中密码有特殊字符写成 urlencode.

I´ve set proxy, https-proxy, strict-ssl false, registry http://registry.npmjs.org proxy has been set like this "http://user:password@proxy_ip:proxy:port" Where the password has a special character written in urlencode.

npm config get proxy 

返回具有应有凭据的代理.

returns proxy with credentials as they should be.

我已经清除了我的 npm 缓存并再次尝试.

I have cleared my npm cache and tried again.

没有成功.

任何想法可能是什么问题?

Any ideas what can be the problem?

推荐答案

通常,当您在公司代理后面时,需要添加您所在的域.鉴于字符也应该是 URL 编码的,它看起来像:

Usually, when you are behind a corporate proxy, it is needed to add the domain where you are at. Given that also the characters should be URL encoded, it would look like:

https://domain%5Cusername:password@proxy:port

这篇关于407认证需要npm的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆