Skip to content

"Unsupported engine" error swallowed #767

Open
@fregante

Description

@fregante

Description

The actual error is missing, this tells me nothing about what failed:

✔ Select SemVer increment or specify new version minor 	0.33.0

  ✔ Prerequisite check
  ✔ Git
  ❯ Installing dependencies using npm
    ✖ Running install command
      → Command failed with exit code 1: npm ci --engine-strict
      Checking working tree is still clean
    Running tests
    Bumping version
    Publishing package
    Pushing tags
    Creating release draft on GitHub

✖️ Error: Command failed with exit code 1: npm ci --engine-strict
    at makeError (~/.bun/install/global/node_modules/execa/lib/error.js:60:11)
    at handlePromise (~/.bun/install/global/node_modules/execa/index.js:124:26)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)

Steps to reproduce

  1. Use the wrong node version to run np ("wrong" as defined by engines)

Expected behavior

Show the real error:

❯ npm ci --engine-strict
npm error code EBADENGINE
npm error engine Unsupported engine
npm error engine Not compatible with your version of node/npm: eslint-config-pixiebrix@0.41.1
npm error notsup Not compatible with your version of node/npm: eslint-config-pixiebrix@0.41.1
npm error notsup Required: {"node":"20.12.0","npm":"10.5.0"}

Environment

np - 10.2.0
Node.js - v22.14.0
npm - 10.9.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions