Web build

npm ci needs an existing package-lock.json

No package-lock.json for npm ci

npm ci needs an existing package-lock.json. npm ci only installs from a package-lock.json. Projects made in Lovable or Bolt often have a bun.lockb, or no lockfile at all.

Updated

What this error means

npm ci only installs from a package-lock.json. Projects made in Lovable or Bolt often have a bun.lockb, or no lockfile at all.

Why it happens

npm ci will not resolve versions itself. It only installs when package-lock.json or npm-shrinkwrap.json is already in the repo.

The message tools print

npm ERR! The `npm ci` command can only install with an existing package-lock.json or
npm ERR! npm-shrinkwrap.json with lockfileVersion >= 1.

How to fix it

  1. Run npm install locally and commit the package-lock.json it creates.
  2. Or switch the build to the package manager your lockfile belongs to (bun install, pnpm install).

Check a log that shows this

Paste the failing step into the build error explainer. It matches this message, and any others in the same log, in your browser. Nothing is uploaded.

Other Web build errors

Build the web app before the native one

CapWrapp installs dependencies from the lockfile, builds the site, and runs Capacitor sync before the native build, from the GitHub repo you connect.

  • Free to start
  • No credit card
  • Sign in with Google or GitHub