Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Local package install fails on exFAT partition #1232

Closed
AbhyudayaSharma opened this issue May 1, 2020 · 2 comments
Closed

[BUG] Local package install fails on exFAT partition #1232

AbhyudayaSharma opened this issue May 1, 2020 · 2 comments
Labels
Bug thing that needs fixing Release 6.x work is associated with a specific npm 6 release

Comments

@AbhyudayaSharma
Copy link

AbhyudayaSharma commented May 1, 2020

What / Why

I'm trying to install a local package like npm install ../package-name. This fails when on an exFAT partition with the following stacktrace:

1201 verbose stack Error: EISDIR: illegal operation on a directory, symlink 'E:\Repos\react-git-info' -> 'E:\Repos\abhyudayasharma.github.io\node_modules\react-git-info'
1202 verbose cwd E:\Repos\abhyudayasharma.github.io
1203 verbose Windows_NT 10.0.18363
1204 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Abhyudaya\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "..\\react-git-info\\"
1205 verbose node v12.13.1
1206 verbose npm  v6.14.4
1207 error code EISDIR
1208 error syscall symlink
1209 error path E:\Repos\react-git-info
1210 error dest E:\Repos\abhyudayasharma.github.io\node_modules\react-git-info
1211 error errno -4068
1212 error EISDIR: illegal operation on a directory, symlink 'E:\Repos\react-git-info' -> 'E:\Repos\abhyudayasharma.github.io\node_modules\react-git-info'
1213 verbose exit [ -4068, true ]

exFAT does not support symlinks: https://docs.microsoft.com/en-us/windows/win32/fileio/filesystem-functionality-comparison#functionality

Since exFAT is not the only filesystem without support of symlinks, there should be a fallback. One I could think of is copying files to node_modules and watching the directory of the package to be installed for changes.

When

  • Installing a local package on an exFAT formatted drive.

Where

  • Windows 10 1909, Version 10.0.18363.815
  • npm 6.14.4
  • Node v12.13.1

I have tested only on Windows, but this should be a problem in all other operating systems.

How

Current Behavior

  • Installation of the package fails due to the filesystem not supporting symlinks.

Steps to Reproduce

  • On an exFAT partition, clone any npm package. In another npm project, install the cloned package with a relative path. The installation will fail because npm is unable to make a symlink.

Expected Behavior

  • Installation of local packages should work like it does with NTFS and ext4.

Who

  • n/a

References

  • n/a
@darcyclarke darcyclarke added Release 6.x work is associated with a specific npm 6 release Bug thing that needs fixing labels Oct 30, 2020
@Namstel
Copy link

Namstel commented Nov 16, 2020

Duplicate of: #1201

@darcyclarke
Copy link
Contributor

npm v6 is no longer in active development; We will continue to push security releases to v6 at our team's discretion as-per our Support Policy.

If your bug is preproducible on v7, please re-file this issue using our new issue template.

If your issue was a feature request, please consider opening a new RRFC or RFC. If your issue was a question or other idea that was not CLI-specific, consider opening a discussion on our feedback repo

Closing: This is an automated message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Release 6.x work is associated with a specific npm 6 release
Projects
None yet
Development

No branches or pull requests

3 participants