Today, while attempting to install dependencies with NPM using docker on my server, I encountered a 403 status code error. Oddly enough, everything was functioning properly up until this morning when npm suddenly stopped being able to install dependencies. Strangely, the issue only seems to be affecting my server, as locally all dependencies can still be installed without any problems. It's important to note that there are no proxies set up on my server.
When I ran the following command directly on my server:
wget https://registry.npmjs.org/
I received the following message:
> 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.
The sudden change in behavior on my server is puzzling. Everything was running smoothly just yesterday and no alterations have been made since then...
The server in question is an OVH Kimsufi.