Applies to:
- Plan - Any
- Deployment - Any
- Use case - Resolve npm installation failures caused by autoevals@0.3.0 engine restrictions by upgrading to autoevals@0.4.0 or updating nested dependencies
Summary
npm install fails with an EBADENGINE error. This happens when autoevals@0.3.0 declares restrictive package engines. Install autoevals@0.4.0 to fix the error.
What is happening
Theautoevals@0.3.0 package.json declares engines that require pnpm. When you run npm install with engine-strict=true, npm rejects the package and returns an EBADENGINE error. The failure is caused by the package engine metadata in autoevals@0.3.0, not by npm itself.
Fix or suggestion
Option 1: Install the fixed release (recommended)
-
In your project, run:
npm install autoevals@0.4.0
Option 2: Update a nested dependency that pins v0.3.0
-
Find any nested installs of the old version:
npm ls autoevals -
If the tree shows a nested
autoevals@0.3.0, identify the package that depends on it. -
Update that package to a version that depends on
autoevals@0.4.0or later by changing yourpackage.jsonor installing a newer release of the parent package and then runningnpm install.
autoevals@0.4.0 at the top level often prevents npm from attempting to install the nested v0.3.0, provided the parent package accepts a newer range.
How to confirm it worked
npm installcompletes without an EBADENGINE error.npm installcompletes without anEBADENGINEerror.
Notes
- The Autoevals installation documentation lists
npm install autoevalsas a supported install method. The package engine restriction inautoevals@0.3.0was an unintended release issue fixed inautoevals@0.4.0.