Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Yarn does not correctly use an offline mirror cache and saved resolutions for flat installations #3910
Do you want to request a feature or report a bug?
A potential bug, although it's entirely possible that I'm misunderstanding intended behavior. Yarn does not seem to make use of the designated
What is the current behavior?
I've got an in-progress app repo that has previously used NPM. I'm switching over to Yarn, and I want to have a reproducible offline install with the smallest possible
Right now, if I run
If I then attempt to clone the repo and install it in a VM or other machine where I have not previously downloaded those packages (and thus have an empty Yarn machine-global cache), and I run
Finally, Yarn reports:
The behavior is not isolated to Lodash - I've seen it fail on other libs as well as I've been trying to make this work, including
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
Yarn would correctly use a combination of the designated per-repo offline mirror folder,
Please mention your node.js, yarn and operating system version.
@markerikson thank you for the detailed explanation but it is very hard to figure out how to reproduce your issue for investigation so we need a sample repo to reproduce the issue reliably.
Also, the 0.x line for Yarn is quite old, the current version is 1.2.1 with 1.3.0 around the corner so I suggest you try the newest version of Yarn first.