Skip to content

Long path support issues on windows when using npm3 #970

Closed
@gertjvr

Description

@gertjvr

Description

TL;DR when using npm3 node packages should not include their dependencies. ie shouldn't have a sub node_modules folder. on windows this can cause long path names. longer than what windows can support.
npm guidance https://docs.npmjs.com/how-npm-works/npm3

Long story but we use cake build scripts and it doesn't support long files paths on windows. We have had a similar issue recently when phantomjs broken release.

Environment

  1. npm ls react-scripts (if you haven’t ejected): react-scripts@0.7.0
  2. node -v: v4.4.5 / v6.9.1
  3. npm -v: v3.7.1 / v3.10.8

Then, specify:

  1. Operating system: Windows 10 and Windows Server 2012

node_modules structure after npm install

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions