Skip to content

[Bug?]: globalFolder is not ${HOME}/.yarn/berry on Windows as documented #6814

Open
@JounQin

Description

@JounQin

Self-service

  • I'd be willing to implement a fix

Describe the bug

https://yarnpkg.com/configuration/yarnrc#globalFolder

It's using ${HOME}\AppData\Local\Yarn\Berry\cache as globalFolder on GitHub Actions at least

Related codes:

if (process.platform === `win32`) {
const base = npath.toPortablePath(process.env.LOCALAPPDATA || npath.join(homedir(), `AppData`, `Local`));
return ppath.resolve(base, `Yarn/Berry`);
}

To reproduce

https://github.com/yarnpkg/pnp-rs/actions/runs/15401892538/job/43336240063?pr=10#step:6:143

Environment

System:
    OS: macOS 15.5
    CPU: (10) arm64 Apple M4
  Binaries:
    Node: 24.1.0 - ~/.tmp/xfs-46bac26b/node
    Yarn: 1.22.22 - ~/.tmp/xfs-46bac26b/yarn
    npm: 11.3.0 - ~/.local/state/fnm_multishells/63216_1748917204732/bin/npm
    pnpm: 10.11.0 - /opt/homebrew/bin/pnpm
    bun: 1.2.15 - /opt/homebrew/bin/bun

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwaiting for feedbackWill autoclose in a while unless more data are provided

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions