Skip to content

Simple guide · Overview

Page status: HistoricalHistory group: Archives

NutsNews Web Offline E2E Startup Fix

This fixes Error: spawn npm ENOENT in scripts/web_offline_e2e_regression.mjs.

Visual overview

Primary diagram

System map

This fixes Error: spawn npm ENOENT in scripts/web_offline_e2e_regression.mjs.

Render the repository-owned system map when you need it.

Diagram is not rendered yet.

View as text
NutsNews Web Offline E2E Startup Fix

This fixes Error: spawn npm ENOENT in scripts/web_offline_e2e_regression.mjs.

flowchart TB
  accTitle: NutsNews Web Offline E2E Startup Fix
  accDescr {
    This fixes Error: spawn npm ENOENT in scripts/web_offline_e2e_regression.mjs.
  }
  A["NutsNews Web Offline E2E Startup Fix"] --> B["archive/root-cleanup/WEB_OFFLINE_E2E_STARTUP_FIX_README.md"]
  B --> C["Auto-generated placeholder diagram"]

NutsNews Web Offline E2E Startup Fix

Fullscreen diagram view.

This fixes Error: spawn npm ENOENT in scripts/web_offline_e2e_regression.mjs.

Cause: the test script started Next.js with cwd: "web". When the script is launched from web/package.json, the current directory is already web/, so the child process attempted to start from web/web. The new version resolves the web app directory from the script location and uses that absolute path.

It also adds a child-process error handler so startup failures fail fast with a clear message instead of crashing with an unhandled event.