"Unsupported engine" error swallowed
<!--- Provide a short summary of the issue in the title above -->
## 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
<!--- Let us how how we can reproduce the issue on our end -->
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
<!-- Mention which versions of np, Node.js, npm and Git you're using, as well as your OS and version -->
np - 10.2.0
Node.js - v22.14.0
npm - 10.9.2
关闭于 2026-01-20 2 条评论