Open
Description
Version
4.5.8
Environment info
Environment Info:
System:
OS: macOS Mojave 10.14.4
CPU: (4) x64 Intel(R) Core(TM) i7-4650U CPU @ 1.70GHz
Binaries:
Node: 15.0.0 - ~/.nvm/versions/node/v15.0.0/bin/node
Yarn: 1.22.4 - /usr/local/bin/yarn
npm: 7.0.2 - ~/.nvm/versions/node/v15.0.0/bin/npm
Browsers:
Chrome: 86.0.4240.111
Edge: Not Found
Firefox: 78.0.1
Safari: 12.1
npmGlobalPackages:
@vue/cli: Not Found
---
Current registry: https://registry.yarnpkg.com
Steps to reproduce
I don’t know how to reproduce this exactly, unfortunately.
What is expected?
The CLI only suggests another registry if it’s significantly better than the current registry.
What is actually happening?
The CLI suggests https://registry.npm.taobao.org which has a response time of 15-45-times the current registry’s response time.
Example output of testing the response time with curl. I reproduced this multiple times.
kev@KevsMacBook ~ $ curl -w "@curl-format.txt" -o /dev/null -s https://registry.npm.taobao.org/siegegg-api
time_namelookup: 0.266313
time_connect: 0.313511
time_appconnect: 0.411322
time_pretransfer: 0.411606
time_redirect: 0.000000
time_starttransfer: 15.695086
----------
time_total: 15.695307
kev@KevsMacBook ~ $ curl -w "@curl-format.txt" -o /dev/null -s https://registry.npmjs.org/siegegg-api
time_namelookup: 0.029874
time_connect: 0.073676
time_appconnect: 0.200626
time_pretransfer: 0.200845
time_redirect: 0.000000
time_starttransfer: 1.160862
----------
time_total: 1.162009
kev@KevsMacBook ~ $ curl -w "@curl-format.txt" -o /dev/null -s https://registry.yarnpkg.com/siegegg-api
time_namelookup: 0.004120
time_connect: 0.065280
time_appconnect: 0.243338
time_pretransfer: 0.243497
time_redirect: 0.000000
time_starttransfer: 0.351197
----------
time_total: 0.356865
Metadata
Metadata
Assignees
Labels
No labels