Skip to content

Hack attempt on Windows - long path issue? #5158

Description

@lifeofguenter

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?

Activity

  1. Florian-R commented on Feb 9, 2016

    @Florian-R

    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

  2. bnoordhuis commented on Feb 9, 2016

    @bnoordhuis
    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.

  3. added
    windowsIssues and PRs related to the Windows platform.
    on Feb 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    windowsIssues and PRs related to the Windows platform.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions