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.

Is there a mirror we chinese could use?

See original GitHub issue
  • I’d be willing to implement this feature
  • This feature can already be implemented through a plugin

Describe the user story

The network is blocked in our country, when we run yarn set version berry there will be an net error because the domain https://raw.githubusercontent.com/yarnpkg/berry/master/packages/berry-cli/bin/berry.js is blocked. this is the error

Resolving berry to a url...
Downloading https://github.com/yarnpkg/berry/raw/master/packages/berry-cli/bin/berry.js...
error An unexpected error occurred: "https://github.com/yarnpkg/berry/raw/master/packages/berry-cli/bin/berry.js: connect ECONNREFUSED 151.101.228.133:443".
info If you think this is a bug, please open a bug report with the information provided in "/home/taoqf/myproj/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/policies for documentation about this command.

Describe the solution you’d like

Maybe we can use an mirror options to change the url to https://cdn.jsdelivr.net/gh/yarnpkg/berry/packages/berry-cli/bin/berry.js or other url , or even a local file.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:17
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
John0Kingcommented, Dec 26, 2020

@arcanis I’m still think use npm directly is a much simpler solution. a) have you count the project in github that use yarn2 insteal of yarn 1 ? b) does thoese project want to use yarn2 ? c) does any feature in yarn1 is not supported in yarn2

if the anser is a) most project use yarn1 b) they want to use yarn2 c) no or only a few feature that not very commonly used.

then I want just to install latest yarn by npm insatll -g yarn

and infact , to use locale version of yarn(any npm packge) is possible :

{
 "scripts":{
       "yarn" : "./node_modules/yarn/yarn.cmd || ./node_modules/yarn/yarn.sh",
        "tsc" :"./node_modueles/typescript/tsc.cmd",
       "build": "yarn run yarn  run  tsc" 
        // here we make the latest yarn to detect the `yarn` script , and use that directly without the `yarn run yarn` prefix 
   }

}

or even better, directly detect the yarn package in devDependencies section of package.json

1reaction
nyaapasscommented, Jul 26, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

Chinese magic mirror - Wikipedia
The Chinese magic mirror traces back to at least the 5th century, although their existence during the Han dynasty (206 BC – 24...
Read more >
Feng Shui Bagua (Pa Kua) Mirror and Its Usage - The Spruce
Bagua mirrors are not recommended for use unless you work with a qualified feng shui practitioner. When you work with an expert, they...
Read more >
Chinese Magic Mirrors are really clever - YouTube
The way they works is really surprising. You can buy Chinese Magic Mirrors from Grand Illusions: https://www.grand-illusions.com/chine.
Read more >
Mirror Myths – Chinese Fauna of Mirrors – Mirrorworld Blog
This week in our journey through the mirror myths of various cultures and ages, we look at the very apt Chinese Legend of...
Read more >
Chinese Bronze Mirrors - The Australian Museum
Since the nature of reflection is somewhat mysterious, people were prone to associate mirrors with the supernatural. They could, it was believed, ...
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