Closed rainwind132 closed 7 months ago
On disks that support copy-on-write, pnpm uses reflinks instead of hard links. reflinks will not have the same inodes even though they point to the same physical data blocks. reflinks are faster than hard links on macOS and use the same amount of disk space.
If you want hard links instead, you can set the package-import-method=hardlink setting.
Verify latest release
pnpm version
8.15.4
Which area(s) of pnpm are affected? (leave empty if unsure)
No response
Link to the code that reproduces this issue or a replay of the bug
No response
Reproduction steps
Verify whether packages installing the same version in different projects are hard links
Describe the Bug
Hard link failed
Hard links installed in different projects for the same version of dependencies are invalid. Is there something wrong with my understanding?
My node 20.0.0 npm 9.6.4
MacBook pro Chip M2 System Ventura 13.2.1
Expected Behavior
The inode of the file should be the same
Which Node.js version are you using?
20.0.0
Which operating systems have you used?
If your OS is a Linux based, which one it is? (Include the version if relevant)
Ventura