Skip to content

[Bug?]: Yarn removes executable permissions when doing a partial install #6551

@JavaScriptBach

Description

@JavaScriptBach

Self-service

  • I'd be willing to implement a fix

Describe the bug

When I run yarn install from scratch, everything installs correctly. When I then upgrade a package (in this case "mocha"), Yarn removes executable permissions, making the binary unrunnable.

To reproduce

https://github.com/JavaScriptBach/yarn-permissions-bug

Environment

System:
OS: macOS 14.7
CPU: (10) arm64 Apple M1 Pro
Binaries:
Node: 18.14.0 - /private/var/folders/kv/7d2gvknd4mv1vdlrk9srf0r00000gn/T/xfs-0a868b6a/node
Yarn: 4.5.0 - /private/var/folders/kv/7d2gvknd4mv1vdlrk9srf0r00000gn/T/xfs-0a868b6a/yarn
npm: 9.3.1 - ~/.nvm/versions/node/v18.14.0/bin/npm

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomersnode-modulesupholdedReal issues without formal reproduction

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions