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

查看:203
本文介绍了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否,注册表 http://registry.npmjs.org
代理已被设置为 http:// user:password @ proxy_ip:proxy:port
其中密码有一个

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天全站免登陆