zhiqiang 最近的时间轴更新
zhiqiang

zhiqiang

V2EX 第 27868 号会员,加入于 2012-10-09 16:49:40 +08:00
npm 遇到 E407 代理验证错误但代理 wget 正常
Node.js  •  zhiqiang  •  10 天前  •  最后回复来自 former
11
慎用虚拟信用卡支付或充值 chatgpt
问与答  •  zhiqiang  •  351 天前  •  最后回复来自 zhiqiang
41
有人 gpt-4 API 申请通过了的吗?
问与答  •  zhiqiang  •  2023-04-10 11:16:42 AM  •  最后回复来自 zhiqiang
27
chatgpt api 经常 timeout 超时
问与答  •  zhiqiang  •  2023-04-01 23:00:49 PM  •  最后回复来自 Her0
6
用 vue3 跨端写小程序,千万别用 taro
程序员  •  zhiqiang  •  2022-12-19 16:01:09 PM  •  最后回复来自 lin07hui
36
腾讯会议甭了?
问与答  •  zhiqiang  •  2022-08-29 10:14:25 AM  •  最后回复来自 oygh
1
腾讯云续费很贵,有办法吗
问与答  •  zhiqiang  •  2022-11-01 07:46:29 AM  •  最后回复来自 zhiqiang
30
巨硬的 windows terminal 连 SSH 后无法输入中文标点符号
Terminal  •  zhiqiang  •  2021-03-02 16:32:30 PM  •  最后回复来自 OliverDD
8
威联通 QNAS 的 download stations 连 PT 没有速度?
NAS  •  zhiqiang  •  2022-03-02 17:10:43 PM  •  最后回复来自 GTSERIESX
29
zhiqiang 最近回复了
11 天前
回复了 zhiqiang 创建的主题 Node.js npm 遇到 E407 代理验证错误但代理 wget 正常
不对。我搞错了。还是不行。
11 天前
回复了 zhiqiang 创建的主题 Node.js npm 遇到 E407 代理验证错误但代理 wget 正常
@NessajCN 还真行。。。这是为什么?之前从没看见过这种写法。
11 天前
回复了 zhiqiang 创建的主题 Node.js npm 遇到 E407 代理验证错误但代理 wget 正常
一个更诡异的是,pnpm 没有问题。只有 npm 有问题。
11 天前
回复了 zhiqiang 创建的主题 Node.js npm 遇到 E407 代理验证错误但代理 wget 正常
搜到一个可能有用的信息。我这个代理在其它还没升级到 24.04 的服务器上没问提。看来 24.04 的 ubuntu 或者新版本的 npm 升级了验证体系?

The dreaded NTLM

There is an HTTP status code 407 (proxy authentication required), which is the more correct way of saying it's the proxy rather than the destination server that's rejecting your request. That code plagued me for the longest time until after a lot of time on Google, I learned my proxy used NTLM authentication. HTTP basic authentication wasn't enough to satisfy whatever proxy my corporate overlords had installed. I resorted to using Cntlm on my local machine (unauthenticated), then had it handle the NTLM authentication with the upstream proxy. Then I had to tell all the programs that couldn't do NTLM to use my local machine as the proxy - which is generally as simple as setting HTTP_PROXY and HTTPS_PROXY. Otherwise, for npm use (as @Agus suggests):

npm config set proxy http://proxy.example.com:3128
npm config set https-proxy http://proxy.example.com:3128
11 天前
回复了 zhiqiang 创建的主题 Node.js npm 遇到 E407 代理验证错误但代理 wget 正常
@arfaWong 换国内源一样的错误。我的理解是代理那一层就出错了,还没访问最终目的地。

$ npm config set registry http://mirrors.cloud.tencent.com/npm/
$ npm install typescript
npm ERR! code E407
npm ERR! 407 Proxy Authentication Required - GET http://mirrors.cloud.tencent.com/npm/typescript
11 天前
回复了 zhiqiang 创建的主题 Node.js npm 遇到 E407 代理验证错误但代理 wget 正常
@NessajCN ~/.npmrc 是空的。如果设置 npm config 之后是

```
https-proxy=http://user123:[email protected]:3128/
proxy=http://user123:[email protected]:3128/
```

但无论是否设置,都是 E407 错误。环境变量设置了 https_proxy 、all_proxy 、http_proxy ,都指向上面这个代理。
@will800 技术类都用 chatgpt 了。现在发现 gpt 解决不了的,Google 一般也搜不到。所以现在都不怎么用 Google 了。
@lchkid 二维码或小程序链接还是太麻烦了,而且不直观。
@whileFalse 认证要钱。300 一年。
150 天前
回复了 lear7 创建的主题 问与答 为什么现在软件质量不如以前?
现在软件功能多,更新快,没以前稳定。但是,你这用出你说的这么多问题,还是奇葩了。
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5112 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 22ms · UTC 06:01 · PVG 14:01 · LAX 23:01 · JFK 02:01
Developed with CodeLauncher
♥ Do have faith in what you're doing.