yarnpkg/yarn
Vedi su GitHubYarn install --offline fails for scoped package with file resolution override
Open
#4909 aperta il 12 nov 2017
cat-bughelp wantedtriaged
Metriche repository
- Star
- (41.514 star)
- Metriche merge PR
- (Nessuna PR mergiata in 30 g)
Descrizione
What is the current behavior?
- Set up a project with a local tarball mirror and pruning (Sample Project).
- Set the resolution for a scoped package to a file in package.json.
- Clear the global yarn cache.
- Run a
yarn install --offline. Yarn will first try and resolve the package to the tarball which will fail. It will then look in the global cache but the scoped cache dir (in this casenpm-@types) doesn't exist and the install will fail here.
This seems like a very niche use case but our CI machines do a build with this exact setup so we can't use file resolutions until this is resolved.
@lelandrichardson