-
Notifications
You must be signed in to change notification settings - Fork 93
boxlite-linux-arm64-gnu and boxlite-darwin-x64 not published to npm (breaks npm ci in Docker) #347
Copy link
Copy link
Closed
Description
@boxlite-ai/[email protected] declares four optional dependencies in its manifest:
"optionalDependencies": {
"@boxlite-ai/boxlite-darwin-arm64": "0.3.0",
"@boxlite-ai/boxlite-darwin-x64": "0.3.0",
"@boxlite-ai/boxlite-linux-arm64-gnu": "0.3.0",
"@boxlite-ai/boxlite-linux-x64-gnu": "0.3.0"
}
But only two of them actually exist on the npm registry:
@boxlite-ai/boxlite-darwin-arm64 — published
@boxlite-ai/boxlite-linux-x64-gnu — published
@boxlite-ai/boxlite-darwin-x64 — 404
@boxlite-ai/boxlite-linux-arm64-gnu — 404
How to repo
Here's a proper two-step repro:
- Generate the lockfile on macOS:
mkdir /tmp/boxlite-repro && cd /tmp/boxlite-reproecho '{"dependencies":{"@boxlite-ai/boxlite":"^0.3.0"}}' > package.json
npm install
- Then build with this Dockerfile (which COPYs the macOS-generated lockfile):
FROM node:24-slim
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
FROM node:24-slim
WORKDIR /appCOPY package.json package-lock.json ./
RUN npm ci
docker build --no-cache .
It will fail with
0.394 npm notice Access token expired or revoked. Please try logging in again.
0.429 npm error code EUSAGE
0.430 npm error
0.430 npm error `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
0.430 npm error
0.430 npm error Missing: @boxlite-ai/boxlite-darwin-x64@ from lock file
0.430 npm error Missing: @boxlite-ai/boxlite-linux-arm64-gnu@ from lock file
0.430 npm error
0.430 npm error Clean install a project
0.430 npm error
0.430 npm error Usage:
0.430 npm error npm ci
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels