Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
EEXIST: file already exists #1685
Code to reproduce the issue:
pnpm install react-icons-kit
Reproducible only on Windows. I'll try to fix this.
This happens because there are two files:
Both npm and Yarn only unpack
this is too late as we need to create an index file that will not contain the file duplicates. If the index file will contain files that are not written to the filesystem, then pnpm will always refetch the package from registry, on every installation.
After a bit more investigation I've found out that file systems may be case insensitive on any OS. Also, on Windows, some folders may be case sensitive, others no. So the store may be case sensitive while the project's node_modules may be case insensitive.
We can do feature detection in the store directory. If
However, there will be an edge case when the store is case sensitive and the
referenced this issue
Mar 17, 2019
You could, on Windows 10, enable case sensitivity for the packages which have two files with different case.
Not possible on Mac tough... Wout.…
On Sat., Apr. 13, 2019, 3:46 p.m. ExE Boss ***@***.***> wrote: You could, on Windows 10, enable case sensitivity for the packages which have two files with different case. See also: - https://devblogs.microsoft.com/commandline/improved-per-directory-case-sensitivity-support-in-wsl/ — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#1685 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AADWlmRI9pMUedANzYCbILY3sBIrxW6zks5vgd-7gaJpZM4bTQyS> .