NPM 在安装公共包时显示 403 [英] NPM shows a 403 when installing public packages

查看:105
本文介绍了NPM 在安装公共包时显示 403的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试使用 NPM 安装我的 deps 时,它给了我 à 403 状态代码.我正在使用 docker 安装它们.一切都很顺利,直到今天早上 npm 无法再安装依赖项.问题仅在我的服务器上.本地可以安装deps,没问题.我的服务器上没有任何代理.

When I am trying to install my deps with NPM it gaves me à 403 status code. I am installing them using docker. Everything was going well till this morning when npm wasn't able to install dependencies anymore. The problem is only on my server. Locally the deps can be installed, no problems. I do not have any proxy on my server.

当我直接在我的服务器中发出这个命令时:

When I issue this command directly in my server :

wget https://registry.npmjs.org/

我明白了:

> wget https://registry.npmjs.org/
--2020-05-29 12:09:35--  https://registry.npmjs.org/
Resolving registry.npmjs.org (registry.npmjs.org)... 2606:4700::6810:1b23, 2606:4700::6810:1523, 2606:4700::6810:1423, ...
Connecting to registry.npmjs.org (registry.npmjs.org)|2606:4700::6810:1b23|:443... connected.
HTTP request sent, awaiting response... 403 Forbidden
2020-05-29 12:09:35 ERROR 403: Forbidden.

我真的不明白我的服务器有什么问题?同样,它昨天还在工作,服务器没有任何变化......

I really do not understand what can be wrong in my server? Again, it was working yesterday, nothing changed in the server...

我的服务器是 OVH Kimsufi.

My server is an OVH Kimsufi.

推荐答案

好吧,好像是 OVH 问题:https://twitter.com/ovh_status/status/1266310329631465472

Ok, seems to be an OVH problem : https://twitter.com/ovh_status/status/1266310329631465472

这篇关于NPM 在安装公共包时显示 403的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆