Skip to content

Figure out why NPM 6.11+ breaks our build #3134

Closed

Description

This is the build issue that hit us previously. Right now we are pinned at 6.10.3. But in 6.11+ we get an issue with -n command that we pass to webpack. NPM in this release had a number of issues with windows command lines and this issue on only showing on windows, so I would assume this is related (see notes in 6.11.1 6.11.2).

https://github.com/npm/cli/releases

Activity

  1. IanMatthewHuff commented on Sep 4, 2019

    @IanMatthewHuff
    MemberAuthor

    reported.

  2. IanMatthewHuff commented on Jan 3, 2020

    @IanMatthewHuff
    MemberAuthor

    npm/npx#5 - Open issue causing the problem
    npm/npx#30 - Possible maintenance issues? This is npm version of npx. Previous version of this died here: zkat/npx#223

  3. IanMatthewHuff commented on Jan 3, 2020

    @IanMatthewHuff
    MemberAuthor

    Set max heap globally (which is why we were using npx I believe):
    npm/npm#12238

    Something like this works as a script:
    cross-env NODE_OPTIONS=--max_old_space_size=9096 webpack --config webpack.config.js --mode production

  4. IanMatthewHuff commented on Jan 6, 2020

    @IanMatthewHuff
    MemberAuthor

    Seems like nyc needs an update as well:
    istanbuljs/nyc#1205
    istanbuljs/nyc#1104

    I think 15 that just came out should fix windows nyc.

  5. rchiodo commented on Jan 9, 2020

    @rchiodo
    Contributor

    Validated

  6. locked as resolved and limited conversation to collaborators on Jan 16, 2020
  7. unlocked this conversation on Nov 14, 2020
  8. locked as resolved and limited conversation to collaborators on May 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions