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: ignore global prefix if --prefix is used #5291

Merged
merged 1 commit into from Aug 10, 2022
Merged

Commits on Aug 10, 2022

  1. fix: ignore global prefix if --prefix is used

    When `--prefix` is used, both the local and global prefix values are set
    to be identical. This is functionally broken because their directory
    structures are inherently different (for instance, in posix the tree is
    in `lib/node_modules` in the global prefix).
    
    This commit makes npm exec ignore the global folders if it detects both
    local and global prefix are identical.
    wraithgar committed Aug 10, 2022
    Copy the full SHA
    59c5f72 View commit details
    Browse the repository at this point in the history