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

Update MAX_PATH guidance for LongPathsEnabled? #108

Open
karlhorky opened this issue Nov 16, 2023 · 2 comments
Open

Update MAX_PATH guidance for LongPathsEnabled? #108

karlhorky opened this issue Nov 16, 2023 · 2 comments

Comments

@karlhorky
Copy link

karlhorky commented Nov 16, 2023

The MAX_PATH explanation and workarounds guide by @mousetraps seems like a nice set of workarounds and explanation, but seems outdated now (eg. mentions npm v3, doesn't mention LongPathsEnabled)

If LongPathsEnabled is enabled on Windows, is there guidance for getting long paths supported in Node.js as well? Or is there a bug tracking this 260+ characters long paths support in Node.js?

Context:

  1. I am not sure if I'm understanding the details of internal Node.js support of long paths yet, but I do see this comment by @bzoz that "Node uses file namespace paths for file access. We do that so we do not get hit by the 260 path limit," - maybe this only applies to writeFile?
  2. The reason I started all of this is that I'm currently coming from this ESLint bug, which occurs when ESLint tries to import long node_modules paths Bug: Long node_modules plugin paths cannot be found on Windows eslint/eslint#17763

It would be great to get support for long file paths on Windows in Node.js!

@karlhorky
Copy link
Author

I also opened an issue in Node.js to see whether the 260 character limit is expected:

@karlhorky
Copy link
Author

Node.js 22.7.0 no longer has long paths problems on Windows, when LongPathsEnabled is set:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant