【问题标题】:npm install express --save command gives 403 forbidden error even after setting proxynpm install express --save 命令即使在设置代理后也会出现 403 禁止错误
【发布时间】:2017-11-28 15:29:27
【问题描述】:

在安装模块express之前,我已经完成了以下步骤。

但是我收到了403 error

npm config set strict-ssl false
npm config set registry "http://registry.npmjs.org/"
npm config set proxy  http://user:password@host:port
npm config set https-proxy http://user:password@host:port

错误
npm 错误!代码 E403
npm 错误! 403 禁止:express@latest

【问题讨论】:

  • 安装 express 时使用什么命令?运行 npm install 时收到什么错误消息?
  • 非常感谢@alexi2 的格式编辑。这是我的第一个问题。全新的“提问”。

标签: node.js express npm


【解决方案1】:

问题已解决。问题出在代理地址本身。我的公司使用 pac 文件。网络团队给了我一个代理地址尝试。但它没有帮助。我下载了pac。并尝试使用新的代理地址。正确授权后,403 禁止问题得到解决。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-06-30
    • 2013-04-25
    • 1970-01-01
    • 2020-11-27
    • 2017-06-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多