Node dependencies and scripts do not work

Created on 27 May 2025, about 2 months ago

Problem/Motivation

Found my way to this theme from dgo.to/governor, and installed it to play around. Following the documentation in the readme I've encountered a few problems.

After generating a new subtheme (neat feature, btw)

npm install

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.27.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.
npm error
npm error
npm error For a full report see:
npm error /mnt/ddev-global-cache/npm/_logs/2025-05-27T13_42_35_216Z-eresolve-report.txt
npm error A complete log of this run can be found in: /mnt/ddev-global-cache/npm/_logs/2025-05-27T13_42_35_216Z-debug-0.log

tl;dr: eslint-config-airbnb-base ^15.0.0 requires eslint ^7.32.0 || ^8.2.0, but the package.json requires eslint ^9.17.0

After downgrading eslint to 8.2.0, another issue:

npm run build

[09:45:56] Using gulpfile /var/www/html/web/themes/custom/subuswds/gulpfile.js
[09:45:56] Starting 'default'...
[09:45:56] Starting 'cleanUswds'...
[09:45:56] 'cleanUswds' errored after 1.11 ms
[09:45:56] TypeError: del is not a function
    at cleanUswds (/var/www/html/web/themes/custom/subuswds/gulpfile.js:37:10)
    at bound (node:domain:433:15)
    at runBound (node:domain:444:12)
    at asyncRunner (/var/www/html/web/themes/custom/subuswds/node_modules/async-done/index.js:52:18)
    at process.processTicksAndRejections (node:internal/process/task_queues:85:11)
[09:45:56] 'default' errored after 4.73 ms

Steps to reproduce

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 andy-blum Ohio, USA

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

Comments & Activities

Production build 0.71.5 2024