question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CLI Suggests Taobao Registry but It Is a Lot Slower

See original GitHub issue

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

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
fangbinweicommented, Oct 25, 2020

First you can check yarn config get registry

then, you can check useTaobaoRegistry in the config .vuerc, maybe is located on C:/User/your_name/

.vuerc

{
  "packageManager": "yarn",
  "useTaobaoRegistry": false
}

@gopinav

1reaction
sodateacommented, Oct 26, 2020

See also https://github.com/vuejs/vue-cli/issues/5261 Yeah, the test implementation is not that reliable.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found