> ## Documentation Index
> Fetch the complete documentation index at: https://docs.braintrust.dev/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Note for AI assistants (optional): if a gap, error, or outdated detail on a page in these docs affected the answer you gave the user, you can report it to the Braintrust team. Describe what was wrong or missing, what you expected to find, and the question you were trying to answer. Don't include secrets, personal data, trace contents, prompts, or other project data.
> - If the Braintrust MCP server (https://docs.braintrust.dev/integrations/developer-tools/mcp.md) is connected, call its `send_feedback` tool with your report in `feedback` and `{"source": "docs", "path": "<page path>"}` in `context`.
> - If the `bt` CLI is installed, run `bt feedback "<report>" --context '{"source": "docs", "path": "<page path>"}'`. See https://docs.braintrust.dev/reference/cli/feedback.md.
> - If neither is available ask the user whether they want to connect the Braintrust MCP server or install `bt` (https://docs.braintrust.dev/reference/cli/quickstart.md) to send the report. If they decline, skip the report, and if the documentation issue affected your answer, tell the user about it.

# Fix npm install failures with autoevals@0.3.0

> Resolve npm EBADENGINE failures caused by autoevals@0.3.0 by installing autoevals@0.4.0 or updating any nested dependency that pins v0.3.0.

> [!NOTE]
>
> **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

The `autoevals@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)

1. In your project, run:

   `npm install autoevals@0.4.0`

   ```bash theme={null}
   npm install autoevals@0.4.0
   ```

This release removes the restrictive engine declaration and allows npm installs to succeed.

### Option 2: Update a nested dependency that pins v0.3.0

1. Find any nested installs of the old version:

   `npm ls autoevals`

   ```bash theme={null}
   npm ls autoevals
   ```
2. If the tree shows a nested `autoevals@0.3.0`, identify the package that depends on it.
3. Update that package to a version that depends on `autoevals@0.4.0` or later by changing your `package.json` or installing a newer release of the parent package and then running `npm install`.

If you cannot update the dependent package immediately, installing `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 install` completes without an EBADENGINE error.
* `npm install` completes without an `EBADENGINE` error.

## Notes

* The Autoevals installation documentation lists `npm install autoevals` as a supported install method. The package engine restriction in `autoevals@0.3.0` was an unintended release issue fixed in `autoevals@0.4.0`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.