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

Hack attempt on Windows - long path issue? #5158

Closed
lifeofguenter opened this issue Feb 9, 2016 · 2 comments
Closed

Hack attempt on Windows - long path issue? #5158

lifeofguenter opened this issue Feb 9, 2016 · 2 comments
Labels
windows Issues and PRs related to the Windows platform.

Comments

@lifeofguenter
Copy link

It seems like some npm modules are attempting to hack the file system of windows - once I run npm install I am unable to delete them again due to long-path constraints of windows.

Is there any fix for this? Why is it possible for a npm module to create folders recursively and unlimited?

@Florian-R
Copy link

This is not a hack, but a known issue with old npm and Windows with many nested dependencies.
This is solved by npm3, which no longer nest dependencies. See npm/npm#3697

@bnoordhuis
Copy link
Member

What @Florian-R said, it's a workaround for the 260 character path limit on Windows. You can still delete the directories through their long name. See also path._makeLong(filename).

Closing, not a bug.

@bnoordhuis bnoordhuis added the windows Issues and PRs related to the Windows platform. label Feb 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
windows Issues and PRs related to the Windows platform.
Projects
None yet
Development

No branches or pull requests

3 participants