np icon indicating copy to clipboard operation
np copied to clipboard

"Unsupported engine" error swallowed

Open fregante opened this issue 9 months ago • 1 comments

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: [email protected]
npm error notsup Not compatible with your version of node/npm: [email protected]
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

fregante avatar Apr 04 '25 07:04 fregante

Same issue happens for me

yairEO avatar Aug 09 '25 08:08 yairEO