yarnpkg/yarn

Yarn install --offline fails for scoped package with file resolution override

Open

#4.909 aberto em 12 de nov. de 2017

Ver no GitHub
 (3 comments) (0 reactions) (1 assignee)JavaScript (2.731 forks)batch import
cat-bughelp wantedtriaged

Métricas do repositório

Stars
 (41.514 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

What is the current behavior?

  1. Set up a project with a local tarball mirror and pruning (Sample Project).
  2. Set the resolution for a scoped package to a file in package.json.
  3. Clear the global yarn cache.
  4. 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 case npm-@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

Guia do colaborador