共计 373 个字符,预计需要花费 1 分钟才能阅读完成。
不知道有人碰到没,头大。
系统:unbuntu 24.04(刚升级的,不知道和这个有没有关系),node/npm 都是 apt 安装的,node 版本 v18.19.1,npm 版本 9.2.0。
npm 无论安装什么包都提示 E407 代理验证错误。
$ npm i typestcript
npm ERR! code E407
npm ERR! 407 Proxy Authentication Required - GET https://registry.npmjs.org/typestcript
我们的确通过配置环境变量使用了代理(内网无法直接连 npm)。这个代理工作是正常的,比如 wget https://registry.npmjs.org/typestcript
都正常下载内容。
npm config set proxy
和 npm config set https-proxy
单独设置代理也都试过了。都不行。
正文完