Skip to content

"Unsupported engine" error swallowed #767

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
fregante opened this issue Apr 4, 2025 · 0 comments
Open

"Unsupported engine" error swallowed #767

fregante opened this issue Apr 4, 2025 · 0 comments

Comments

@fregante
Copy link
Collaborator

fregante commented Apr 4, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant