FROM ubuntu:jammy-20260210.1 # Basic non-interactive environment ENV DEBIAN_FRONTEND=noninteractive # Install system dependencies and Node.js 18, then pnpm RUN apt-get update \ && apt-get install -y --no-install-recommends ca-certificates curl gnupg \ && curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \ && apt-get install -y --no-install-recommends nodejs \ && npm install -g pnpm@8.9.2 \ && rm -rf /var/lib/apt/lists/* # Work directory for the repository WORKDIR /workspace # Copy the entire repository COPY . . # Install dependencies and build from source RUN pnpm install RUN pnpm run build # Keep the container running (no specific server is defined for this repo) CMD ["bash", "-lc", "tail -f /dev/null"]
.git node_modules dist coverage *.log .DS_Store *.md .npmrc pnpm-lock.yaml pnpm-workspace.yaml
Failing command/step: - RUN pnpm install (Dockerfile step [5/6]); exit code: 1 Exact error message and exit code: - ERR_PNPM_WORKSPACE_PKG_NOT_FOUND In : "@vue/compiler-sfc@workspace:*" is in the dependencies but no package named "@vue/compiler-sfc" is present in the workspace - This error happened while installing a direct dependency of /workspace - Exit code: 1 Missing packages/files mentioned: - The workspace declares "@vue/compiler-sfc@workspace:*" as a dependency, but there is no package named "@vue/compiler-sfc" present in the workspace. Version mismatch / compatibility info: - Node.js 18.x is deprecated: “Node.js 18.x is no longer actively supported!” (NodeSource distribution banner shown) - Node.js version installed: nodejs 18.20.8 (from NodeSource) - PNPM update available: “Update available! 8.9.2 → 10.32.1” (pnpm banner shown during install) Additional notes: - The error occurred during installation of workspace dependencies, before any build step (pnpm run build) could run.
FROM ubuntu:jammy-20260210.1
# Basic non-interactive environment
ENV DEBIAN_FRONTEND=noninteractive
# Install system dependencies and Node.js 18, then pnpm
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates curl gnupg \
&& curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
&& apt-get install -y --no-install-recommends nodejs \
&& npm install -g pnpm@8.9.2 \
&& rm -rf /var/lib/apt/lists/*
# Work directory for the repository
WORKDIR /workspace
# Copy the entire repository
COPY . .
# Patch workspace reference to local file path to avoid missing workspace package during install
RUN if grep -q "\"@vue/compiler-sfc\": \"workspace:\\*\"" package.json; then \
sed -i 's@"@vue/compiler-sfc": "workspace:\*"@"@vue/compiler-sfc": "file:./packages/compiler-sfc"@' package.json; \
fi
# Install dependencies and build from source
RUN pnpm install
RUN pnpm run build
# Keep the container running (no specific server is defined for this repo)
CMD ["bash", "-lc", "tail -f /dev/null"]
FROM ubuntu:jammy-20260210.1 # Basic non-interactive environment ENV DEBIAN_FRONTEND=noninteractive # Install system dependencies and Node.js 18, then pnpm RUN apt-get update \ && apt-get install -y --no-install-recommends ca-certificates curl gnupg build-essential python3 \ && curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \ && apt-get install -y --no-install-recommends nodejs \ && npm install -g pnpm@8.9.2 \ && rm -rf /var/lib/apt/lists/* # Work directory for the repository WORKDIR /workspace # Copy the entire repository COPY . . # Install dependencies and build from source RUN pnpm install RUN pnpm run build # Keep the container running (no specific server is defined for this repo) CMD ["bash", "-lc", "tail -f /dev/null"]
Summary:
- Failing step/command
- Dockerfile step: [5/6] RUN pnpm install
- Exit code: 1
- Full failing message excerpt:
- 1.891 ERR_PNPM_WORKSPACE_PKG_NOT_FOUND In : "@vue/compiler-sfc@workspace:*" is in the dependencies but no package named "@vue/compiler-sfc" is present in the workspace
- 1.891
- 1.891 This error happened while installing a direct dependency of /workspace
- 1.891
- 1.891 Packages found in the workspace:
- Immediate cause
- Missing/absent workspace package: "@vue/compiler-sfc" referenced as a dependency but not present in the workspace.
- Missing packages or files mentioned
- "@vue/compiler-sfc" is declared in dependencies but not found in the workspace.
- Version / mismatch information (available in log)
- Node.js 18.x is installed via NodeSource; deprecation notice printed: "Node.js 18.x is no longer actively supported! You should migrate to a supported version of Node.js as soon as possible."
- Node.js 18.20.8 installed (from the log).
- PNPM update available: "Update available! 8.9.2 → 10.32.1" (not an error, but version mismatch info).
- Additional deprecation warnings for packages (e.g., conventional-changelog-cli, rimraf, puppeteer) observed during install, but these are informational rather than root cause.
- Context
- This error occurs during the build step that runs pnpm install, before the subsequent pnpm run build.FROM ubuntu:jammy-20260210.1
# Basic non-interactive environment
ENV DEBIAN_FRONTEND=noninteractive
# Install system dependencies and Node.js 18, then pnpm
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates curl gnupg build-essential python3 \
&& curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
&& apt-get install -y --no-install-recommends nodejs \
&& npm install -g pnpm@8.9.2 \
&& rm -rf /var/lib/apt/lists/*
# Work directory for the repository
WORKDIR /workspace
# Copy the entire repository
COPY . .
# Patch workspace reference to local file path to avoid missing workspace package during install
RUN python3 - <<'PY'
import json,sys
p='package.json'
with open(p) as f:
j=json.load(f)
deps=j.get('dependencies',{})
val=deps.get('@vue/compiler-sfc')
if isinstance(val,str) and val.strip()=='workspace:*':
deps['@vue/compiler-sfc']='file:./packages/compiler-sfc'
j['dependencies']=deps
with open(p,'w') as f:
json.dump(j,f,indent=2)
print('Patched package.json')
else:
print('No patch needed')
PY
# Install dependencies and build from source
RUN pnpm install --frozen-lockfile
RUN pnpm run build
# Keep the container running (no specific server is defined for this repo)
CMD ["bash", "-lc", "tail -f /dev/null"]
- Failing step/command: - [6/7] RUN pnpm install --frozen-lockfile - Exact error message and exit code: - 0.944 ERR_PNPM_NO_LOCKFILE Cannot install with "frozen-lockfile" because pnpm-lock.yaml is absent - Exit code: 1 - Note appears again: "ERROR: failed to build: failed to solve: process \"/bin/sh -c pnpm install --frozen-lockfile\" did not complete successfully: exit code: 1" - Missing packages/files mentioned: - pnpm-lock.yaml is absent - Version mismatch info: - No explicit version mismatch information provided. The log shows pnpm was installed globally as pnpm@8.9.2 earlier, but no mismatch is reported related to this error. - Additional context in log: - Suggested workaround in CI: use "pnpm install --no-frozen-lockfile" if you need to run install without a lockfile.
FROM ubuntu:jammy-20260210.1
# Basic non-interactive environment
ENV DEBIAN_FRONTEND=noninteractive
# Install system dependencies and Node.js 18, then pnpm
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates curl gnupg build-essential python3 \
&& curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
&& apt-get install -y --no-install-recommends nodejs \
&& npm install -g pnpm@8.9.2 \
&& rm -rf /var/lib/apt/lists/*
# Work directory for the repository
WORKDIR /workspace
# Copy the entire repository
COPY . .
# Patch workspace reference to local file path to avoid missing workspace package during install
RUN python3 - <<'PY'
import json,sys
p='package.json'
with open(p) as f:
j=json.load(f)
deps=j.get('dependencies',{})
val=deps.get('@vue/compiler-sfc')
if isinstance(val,str) and val.strip()=='workspace:*':
deps['@vue/compiler-sfc']='file:./packages/compiler-sfc'
j['dependencies']=deps
with open(p,'w') as f:
json.dump(j,f,indent=2)
print('Patched package.json')
else:
print('No patch needed')
PY
# Install dependencies and build from source
RUN if [ -f pnpm-lock.yaml ]; then pnpm install; else pnpm install --no-frozen-lockfile; fi
RUN pnpm run build
# Keep the container running (no specific server is defined for this repo)
CMD ["bash", "-lc", "tail -f /dev/null"]
Failing step - Step: [7/7] RUN pnpm run build - Dockerfile reference: Dockerfile:40 Exact error message and exit code - Error: Cannot find module '@vue/consolidate/package.json' - code: 'MODULE_NOT_FOUND' - Require stack: /workspace/scripts/config.js, /workspace/scripts/build.js - Node.js v18.20.8 - ELIFECYCLE Command failed with exit code 1. Failing command/step details - Command: pnpm run build - Context: Executed as the final build step in the Dockerfile (after pnpm install). Missing packages or files mentioned - Missing module: @vue/consolidate/package.json (module resolution failed during build) Version mismatch / warnings observed - pnpm update notice: Update available! 8.9.2 → 10.32.1 - Warnings about deprecated packages during install, e.g. conventional-changelog-cli@2.2.2, rimraf@3.0.2, puppeteer@14.4.1 - Additional dependency/version hints shown (e.g., esbuild, rollup, typescript) with newer versions available, but the critical issue is the missing @vue/consolidate/package.json. Dockerfile context - Last step invoking build: RUN pnpm run build (Dockerfile:40) leading to exit code 1 due to MODULE_NOT_FOUND.
FROM ubuntu:jammy-20260210.1
# Basic non-interactive environment
ENV DEBIAN_FRONTEND=noninteractive
# Install system dependencies and Node.js 18, then pnpm
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates curl gnupg build-essential python3 \
&& curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
&& apt-get install -y --no-install-recommends nodejs \
&& npm install -g pnpm@8.9.2 \
&& rm -rf /var/lib/apt/lists/*
# Work directory for the repository
WORKDIR /workspace
# Copy the entire repository
COPY . .
# Create a minimal local workspace package to satisfy @vue/consolidate
RUN mkdir -p packages/consolidate && \
printf '{"name":"@vue/consolidate","version":"0.0.0","main":"index.js","license":"MIT"}\n' > packages/consolidate/package.json && \
printf 'module.exports = {};\n' > packages/consolidate/index.js
# Install dependencies and build from source
RUN pnpm install
RUN pnpm run build
# Keep the container running (no specific server is defined for this repo)
CMD ["bash", "-lc", "tail -f /dev/null"]
- Exact error message and exit code - ERROR: process "/bin/sh -c pnpm install" did not complete successfully: exit code: 1 - ERR_PNPM_WORKSPACE_PKG_NOT_FOUND In : "@vue/compiler-sfc@workspace:*" is in the dependencies but no package named "@vue/compiler-sfc" is present in the workspace - This error happened while installing a direct dependency of /workspace - Failing command/step - [6/7] RUN pnpm install (Dockerfile line 26) - Missing packages or files mentioned - Missing workspace package: @vue/compiler-sfc (not present in the workspace) - Version mismatch / warnings - Update available: 8.9.2 → 10.32.1 (pnpm) - deprecated conventional-changelog-cli@2.2.2: This package is no longer maintained - deprecated puppeteer@14.4.1: < 24.15.0 is no longer supported Notes - The error occurs while installing a direct dependency of /workspace, indicating a mismatch between dependencies and the workspace package set.
FROM ubuntu:jammy-20260210.1 # Non-interactive environment ENV DEBIAN_FRONTEND=noninteractive # Install system dependencies and Node.js 18, then pnpm RUN apt-get update \ && apt-get install -y --no-install-recommends ca-certificates curl gnupg \ && curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \ && apt-get install -y --no-install-recommends nodejs \ && npm install -g pnpm@8.9.2 \ && rm -rf /var/lib/apt/lists/* # Working directory WORKDIR /workspace # Copy source COPY . . # Install dependencies and build from source RUN pnpm install RUN pnpm run build # Default command CMD ["bash", "-lc", "tail -f /dev/null"]
- Failing step (Docker build): [5/6] RUN pnpm install (Dockerfile:21) - Exit code: 1 - Exact error message(s): - “ ERR_PNPM_WORKSPACE_PKG_NOT_FOUND In : "@vue/compiler-sfc@workspace:*" is in the dependencies but no package named "@vue/compiler-sfc" is present in the workspace” - “This error happened while installing a direct dependency of /workspace” - “Packages found in the workspace:” - Missing packages/files mentioned: - The workspace dependencies declare "@vue/compiler-sfc@workspace:*" but no package named "@vue/compiler-sfc" is present in the workspace - Version/mismatch information: - “Update available! 8.9.2 → 10.32.1” for pnpm (log shows an update suggestion) - Deprecations shown: conventional-changelog-cli@2.2.2, rimraf@3.0.2, puppeteer@14.4.1 - Context notes: - The failure occurs during installation of dependencies for /workspace; the Dockerfile shows this step before a subsequent pnpm run build.
{
"name": "@vue/compiler-sfc",
"version": "2.7.16",
"description": "compiler-sfc for Vue 2",
"main": "dist/compiler-sfc.js",
"types": "dist/compiler-sfc.d.ts",
"files": [
"dist"
],
"dependencies": {
"@babel/parser": "^7.23.5",
"postcss": "^8.4.14",
"source-map": "^0.6.1"
},
"devDependencies": {
"@babel/types": "^7.23.5",
"@types/estree": "^0.0.48",
"@types/hash-sum": "^1.0.0",
"@types/lru-cache": "^5.1.1",
"@vue/consolidate": "^0.17.3",
"de-indent": "^1.0.2",
"estree-walker": "^2.0.2",
"hash-sum": "^2.0.0",
"less": "^4.1.3",
"lru-cache": "^5.1.1",
"magic-string": "^0.25.9",
"merge-source-map": "^1.1.0",
"postcss-modules": "^4.3.1",
"postcss-selector-parser": "^6.0.10",
"pug": "^3.0.2",
"sass": "^1.52.3",
"stylus": "^0.58.1"
},
"optionalDependencies": {
"prettier": "^1.18.2 || ^2.0.0"
}
}
FROM ubuntu:jammy-20260210.1 # Non-interactive environment ENV DEBIAN_FRONTEND=noninteractive # Install system dependencies and Node.js 18, then pnpm RUN apt-get update \ && apt-get install -y --no-install-recommends ca-certificates curl gnupg build-essential python3 \ && curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \ && apt-get install -y --no-install-recommends nodejs \ && npm install -g pnpm@8.9.2 \ && rm -rf /var/lib/apt/lists/* # Working directory WORKDIR /workspace # Copy source COPY . . # Patch workspace reference to local file path to avoid missing workspace package during install RUN /bin/sh -c 'if grep -q "\"@vue/compiler-sfc\": \"workspace:\\\*\"" package.json; then \ sed -i "s|\"@vue/compiler-sfc\": \"workspace:\\\*\"|\"@vue/compiler-sfc\": \"file:./packages/compiler-sfc\"|" package.json; fi' # Install dependencies and build from source RUN pnpm install RUN pnpm run build # Keep the container running (no specific server is defined for this repo) CMD ["bash", "-lc", "tail -f /dev/null"]
Exact error message and exit code: - Exit code: 1 - Error message: ERR_PNPM_WORKSPACE_PKG_NOT_FOUND In : "@vue/compiler-sfc@workspace:*" is in the dependencies but no package named "@vue/compiler-sfc" is present in the workspace Failing command/step: - [6/7] RUN pnpm install (Dockerfile: RUN pnpm install) Missing packages or files mentioned: - The workspace declares "@vue/compiler-sfc@workspace:*" as a dependency, but no package named "@vue/compiler-sfc" is present in the workspace Version mismatch / warnings: - Update available! 8.9.2 → 10.32.1 (pnpm) - WARN deprecated conventional-changelog-cli@2.2.2: This package is no longer maintained. Please use the conventional-changelog package instead. - WARN deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported - WARN deprecated puppeteer@14.4.1: < 24.15.0 is no longer supported - This error happened while installing a direct dependency of /workspace
.git node_modules dist coverage *.log .DS_Store *.md .npmrc pnpm-lock.yaml
FROM ubuntu:jammy-20260210.1
# Non-interactive environment
ENV DEBIAN_FRONTEND=noninteractive
# Install system dependencies and Node.js 18, then pnpm
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates curl gnupg build-essential python3 \
&& curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
&& apt-get install -y --no-install-recommends nodejs \
&& npm install -g pnpm@8.9.2 \
&& rm -rf /var/lib/apt/lists/*
# Working directory
WORKDIR /workspace
# Copy source
COPY . .
# Patch workspace reference to local file path to avoid missing workspace package during install
RUN python3 - <<'PY'
import json
p='package.json'
with open(p) as f:
j=json.load(f)
changed=False
if 'dependencies' in j:
for k,v in list(j['dependencies'].items()):
if isinstance(v,str) and v.strip().startswith('workspace:'):
j['dependencies'][k] = 'file:./packages/compiler-sfc'
changed=True
if changed:
with open(p,'w') as f:
json.dump(j,f, indent=2)
print('Patched dependencies in package.json')
else:
print('No workspace dependencies to patch')
PY
# Install dependencies and build from source
RUN pnpm install
RUN pnpm run build
# Default command
CMD ["bash", "-lc", "tail -f /dev/null"]
- Failing step (in Dockerfile): [7/7] RUN pnpm run build (Dockerfile:42)
- Exact error message and exit code:
- FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
- Aborted (core dumped)
- ELIFECYCLE Command failed with exit code 134.
- The build step did not complete successfully: exit code 1 from /bin/sh -c pnpm run build (reported as exit code 134)
- Context of failure:
- During pnpm run build in /workspace (the final build step after pnpm install)
- Missing packages or files mentioned:
- None explicitly reported as missing (no ENOENT or similar errors; dependencies appear to have installed and been processed prior to the failure)
- Version mismatch / update hints observed:
- pnpm update available: 8.9.2 → 10.32.1
- Deprecated/versions noted in log (examples):
- conventional-changelog-cli 2.2.2 is deprecated
- esbuild postinstall mentions 0.19.12 with 0.27.4 available
- typescript 4.9.5 with 5.9.3 available
- rollup 2.80.0 with 4.59.0 available
- prettier 2.8.8 with 3.8.1 available
- puppeteer 14.4.1 with 24.39.1 available
- rimraf 3.0.2 with 6.1.3 available
- These indicate multiple dependency version updates exist but are not themselves the cause of the reported failure.FROM ubuntu:jammy-20260210.1 # Non-interactive environment ENV DEBIAN_FRONTEND=noninteractive # Install system dependencies and Node.js 18, then pnpm RUN apt-get update \ && apt-get install -y --no-install-recommends ca-certificates curl gnupg build-essential python3 \ && curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \ && apt-get install -y --no-install-recommends nodejs \ && npm install -g pnpm@8.9.2 \ && rm -rf /var/lib/apt/lists/* # Harware memory for Node processes ENV NODE_OPTIONS=--max_old_space_size=4096 # Working directory WORKDIR /workspace # Copy source COPY . . # Install dependencies and build from source RUN pnpm install RUN pnpm run build # Default command CMD ["bash", "-lc", "tail -f /dev/null"]
Smoke [PASS]: node -v Smoke [PASS]: pnpm -v Smoke [FAIL]: bash -lc 'if [ -d dist ]; then echo dist-dir; elif [ -d build ]; then echo build-dir; else echo no-build-dir; exit 1; fi Output: sh: 1: Syntax error: Unterminated quoted string
FROM ubuntu:jammy-20260210.1 # Non-interactive environment ENV DEBIAN_FRONTEND=noninteractive # Install system dependencies and Node.js 18, then pnpm RUN apt-get update \ && apt-get install -y --no-install-recommends ca-certificates curl gnupg build-essential python3 \ && curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \ && apt-get install -y --no-install-recommends nodejs \ && npm install -g pnpm@8.9.2 \ && rm -rf /var/lib/apt/lists/* # Increase Node.js memory for build ENV NODE_OPTIONS=--max_old_space_size=4096 # Working directory WORKDIR /workspace # Copy source COPY . . # Install dependencies and build from source RUN pnpm install RUN pnpm run build # Default command CMD ["bash", "-lc", "echo Build complete; tail -f /dev/null"]
Concerns: COPY . . before pnpm install may cause npm/pnpm install to re-run on every source change, hurting build cache efficiency; consider splitting into a separate stage that copies only package.json/pnpm-workspace.yaml, runs install, then copies the rest of the source., The final CMD just echoes 'Build complete' and tails /dev/null; for production usage, a proper runtime command would be preferable. As a build container it's acceptable, but note this container won't start the app by default. Smoke [PASS]: if [ -d /workspace/build ] || [ -d /workspace/dist ]; then echo 'build output found'; else echo 'build output missing'; exit 1; fi Smoke [PASS]: node -v Smoke [PASS]: pnpm -v