Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(config): add flatOptions.npxCache #3430

Merged
merged 1 commit into from
Jun 17, 2021
Merged

Commits on Jun 17, 2021

  1. fix(config): add flatOptions.npxCache

    This adds a new `npxCache` flatOption for libnpmexec to look for to put
    its `_npx` content.  libnpmexec will have to be patched to use that
    value, and continue to pass `flatOptions.cache` to pacote et al.
    
    The `flatOptions.cache` is the one that is intended to be passed down
    into other modules, as it has the `_cacache` suffix attached.  What was
    happening before was that `npx` was creating a new alternate cache one
    directory up from where everything else was, and also putting the `_npx`
    content there.  It is possible this is the source of at least some of
    our "npx doesn't find the right versions" bugs.
    
    PR-URL: #3430
    Credit: @wraithgar
    Close: #3430
    Reviewed-by: @ruyadorno
    wraithgar committed Jun 17, 2021
    Configuration menu
    Copy the full SHA
    c99b8b5 View commit details
    Browse the repository at this point in the history