CLI Suggests Taobao Registry but It Is a Lot Slower
See original GitHub issueVersion
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
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (1 by maintainers)
Top Results From Across the Web
Vue create "projectName" ERR_SOCKET_TIMEOUT - fails all ...
CLI Suggests Taobao Registry but It Is a Lot Slower ... Version 4.5.8 Environment info Environment Info: System: OS: macOS Mojave 10.14.4 CPU:...
Read more >vue.js - fails all the time no matter what - taobao - Stack Overflow
From this github thread, we may try to not use it anymore. For that, you can go to your ~/.vuerc and set "useTaobaoRegistry":...
Read more >Untitled - Snap!
... Compute the input expression, but ignore the value it reports. ... ,protest,merchandise,nuts,dual,attendance,clip,horrible,sony,creator,minority,ebay ...
Read more >Vue Front-end Framework - Medium
From CLI. C:\my_vue>vue create test? Your connection to the default npm registry seems to be slow. Use https://registry.npm.taobao.org for ...
Read more >Bug listing with status UNCONFIRMED as at 2022/12/28 10 ...
Command line interface for Amazon Glacier. ... Bug:579548 - "kde-plasma/polkit-kde-agent can't register as authentication agent on systemd when ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
First you can check
yarn config get registry
then, you can check
useTaobaoRegistry
in the config.vuerc
, maybe is located onC:/User/your_name/
.vuerc
@gopinav
See also https://github.com/vuejs/vue-cli/issues/5261 Yeah, the test implementation is not that reliable.