npm install error ERESOLVE

Created on 28 August 2025, 2 months ago

Problem/Motivation

I installed Drupal 11 and UI Suite for USWDS 4.0.1. I used the browser interface to make a subtheme.
Within that subtheme I tried npm install and got this error:

npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: ui_suite_uswds_starterkit@1.0.0
npm error Found: eslint@9.34.0
npm error node_modules/eslint
npm error   dev eslint@"^9.17.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer eslint@"^7.32.0 || ^8.2.0" from eslint-config-airbnb-base@15.0.0
npm error node_modules/eslint-config-airbnb-base
npm error   dev eslint-config-airbnb-base@"^15.0.0" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.

Steps to reproduce

ddev quickstart
composer require 'drupal/ui_suite_uswds:^4.0'
make a subtheme using the UI
cd into that directory
npm install

Proposed resolution

?

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States greggles Denver, Colorado, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024