【发布时间】:2020-02-08 15:52:51
【问题描述】:
我在 Windows 10 上使用 ubuntu 来安装和运行 npm。 我使用以下方式下载了nodejs:
curl -sL https://deb.nodesource.com/setup_10.x | bash
apt-get install -yq nodejs
我使用以下方法设置代理参数:
npm config set proxy http://my.domain.name:port
npm config set https-proxy http://my.domain.name:port
在执行npm install 时出现以下错误:
...
npm ERR! code E403
npm ERR! 403 Forbidden - GET https://registry.npmjs.org/acorn/-/acorn-5.7.1.tgz
npm ERR! A complete log of this run can be found in:
...
我检查了类似的帖子,但没有任何成功: Using npm behind corporate proxy .pac npm behind a proxy fails with status 403
如果您对此有任何想法,请告诉我,最好
【问题讨论】:
-
npm install -g npm@3.10.10
-
也没有用...
-
从 .npmrc 文件中删除 _auth 条目
标签: node.js npm installation http-status-code-403 windows-subsystem-for-linux