Skip to content

boxlite-linux-arm64-gnu and boxlite-darwin-x64 not published to npm (breaks npm ci in Docker) #347

@Bl3f

Description

@Bl3f

@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:

  1. Generate the lockfile on macOS:
mkdir /tmp/boxlite-repro && cd /tmp/boxlite-reproecho '{"dependencies":{"@boxlite-ai/boxlite":"^0.3.0"}}' > package.json
npm install
  1. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions