Open P0oOOOo0YA opened 5 years ago
troubles me too. This problem prevents yarn from being available on the Intranet server. Will appreciate a lot if someone has solutions.
you can try add '--offline' option
yarn add @electron-e/store --verbose --offline
I'm having similar issues on macos v11.3.1
but works well on v11.2.3
.
I'm trying to use local private npm on the macos host network, there is a private npm service (verdaccio) ruuning on http://host.docker.internal:4873
.
docker run --rm -it node:16.13.2-alpine3.14 sh
mkdir test
cd test
yarn add express --verbose
on macos v11.3.1, the fetching url is different between. [1/4] Resolving packages...
and [2/4] Fetching packages...
steps.
It ended up with an error error An unexpected error occurred: "http://localhost:4873/array-flatten/-/array-flatten-1.1.1.tgz: connect ECONNREFUSED 127.0.0.1:4873".
...
[1/4] Resolving packages...
verbose 0.474608063 Performing "GET" request to "http://host.docker.internal:4873/express".
...
...
[2/4] Fetching packages...
verbose 2.001301312 Performing "GET" request to "http://localhost:4873/accepts/-/accepts-1.3.8.tgz".
...
on macos v11.2.3
, it works well.
troubles me too. This behavior is really stupid.
I have installed verdaccio and published a private pacakge to it and have set yarn registry to make requests to verdaccio proxy server. yarn makes request to the proxy server with some following requests to yarnpkg server which is not the expected behavior after setting the registry to a private one. When a user sets the registry he simple means hey yarn don't do any other requests in anyway to any server other than what i have set explicitly for you. All your requests should be targeted towards what i have set for you.