Self-service
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
Self-service
Describe the bug
When installing a large package (e.g.
@mui/icons-material, which has 10k+ flat files) , on Windows, withnodeLinker: node_modulesandnmMode: hardlinks-global, some files may be missing in the finalnode_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-materialhas 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.0Additional 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