Skip to content

[Bug]: Windows - missing files at install on large packages #7194

Description

@ClementValot

Self-service

  • I'd be willing to implement a fix

Describe the bug

When installing a large package (e.g. @mui/icons-material, which has 10k+ flat files) , on Windows, with nodeLinker: node_modules and nmMode: hardlinks-global, some files may be missing in the final node_modules.

This appears to be linked to the Windows file-system failing silently on bulk symlinking

To reproduce

Below are redacted package.json, yarnrc, yarn.lock, and a checksums file I was advised to provide :)

yarn.lock.copy.txt

.yarnrc.yml

package.json

checksums.txt

After install, the @mui/icons-material has some missing files. Namely, all the .js and .mjs files seem to be present, but only the first 1024 .d.mts files, and none of the d.ts files are present, which seems to indicate that the symlinking happens by batches of 1024 files, grouped by file extension.

Environment

System:
    OS: Windows 11 10.0.26200
    CPU: (12) x64 Snapdragon(R) X Elite - X1E80100 - Qualcomm(R) Oryon(TM) CPU
  Binaries:
    Node: 24.16.0 
    Yarn: 4.17.0 
    npm: 11.13.0

Additional context

  • The files in the cache are correct, clearing the cache, fresh installs, and deleting yarn.lock don't change the behavior which seems to be deterministic in my setup

  • I'll try and gather some logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions