Skip to content

Updating from 7.0.10 to 7.1.0 breaks npm install when running on Node 12 or 14 with NPM 6.X #357

@developher-net

Description

@developher-net

7.10.0 is a breaking change with the introduction of NPM 7 as a dependency

My project's unit tests run npm install using Node's child_process.spawn

Bumping from 7.0.10 to 7.1.0 or 7.1.1 causes the tests to fail, because the Exit Code for npm install suddenly is 1 instead of 0
developher-net/react-project-boilerplate#679

I've narrowed this down by specifying explicit versions of @semantic-release/npm in my package.json with no other changes in my repo. Something about adding NPM 7 as a depedency causes problems when the project is using an older version of NPM as provided by the filesystem (eg, NPM 6.X with Node 14)

My project is designed to be run on multiple versions of Node. Forcing NPM 7 would break compatibility with Node LTS versions 12 and 14, forcing everyone to Node 15. Most people use the version of NPM that comes with Node.

This all seems to work fine when running my project in Node 15 with NPM 7.7. But running my project on Node 12 or Node 14 with NPM 6.x is now failing.

Metadata

Metadata

Assignees

No one assigned

    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