admin管理员组

文章数量:1396094

While deploying the app I am getting this error, Here is the error for build summary.

Step #2 - "build": Node.js v20.18.3 cache hit, skipping installation.
Step #2 - "build": === Node.js - Npm ([email protected]) ===
Step #2 - "build": ***** CACHE MISS: "npm_modules"
Step #2 - "build": Installing application dependencies.
Step #2 - "build": --------------------------------------------------------------------------------
Step #2 - "build": Running "npm ci --quiet --no-fund --no-audit (NODE_ENV=development)"
Step #2 - "build": npm error code EUSAGE
Step #2 - "build": npm error
Step #2 - "build": npm error The `npm ci` command can only install with an existing package-lock.json or
Step #2 - "build": npm error npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or
Step #2 - "build": npm error later to generate a package-lock.json file, then try again.
Step #2 - "build": npm error
Step #2 - "build": npm error Clean install a project
Step #2 - "build": npm error
Step #2 - "build": npm error Usage:
Step #2 - "build": npm error npm ci
Step #2 - "build": npm error
Step #2 - "build": npm error Options:
Step #2 - "build": npm error [--install-strategy <hoisted|nested|shallow|linked>] [--legacy-bundling]
Step #2 - "build": npm error [--global-style] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
Step #2 - "build": npm error [--include <prod|dev|optional|peer> [--include <prod|dev|optional|peer> ...]]
Step #2 - "build": npm error [--strict-peer-deps] [--foreground-scripts] [--ignore-scripts] [--no-audit]
Step #2 - "build": npm error [--no-bin-links] [--no-fund] [--dry-run]
Step #2 - "build": npm error [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
Step #2 - "build": npm error [-ws|--workspaces] [--include-workspace-root] [--install-links]
Step #2 - "build": npm error
Step #2 - "build": npm error aliases: clean-install, ic, install-clean, isntall-clean
Step #2 - "build": npm error
Step #2 - "build": npm error Run "npm help ci" for more info
Step #2 - "build": npm error A complete log of this run can be found in: /www-data-home/.npm/_logs/2025-03-26T20_16_21_771Z-debug-0.log
Step #2 - "build": Done "npm ci --quiet --no-fund --no-audit (NODE_ENV=development)" (618.437151ms)
Step #2 - "build": --------------------------------------------------------------------------------
Step #2 - "build": failed to build: (error ID: 7fa33aaa):
Step #2 - "build": npm error code EUSAGE
Step #2 - "build": npm error
Step #2 - "build": npm error The `npm ci` command can only install with an existing package-lock.json or
Step #2 - "build": npm error npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or
Step #2 - "build": npm error later to generate a package-lock.json file, then try again.
Step #2 - "build": npm error
Step #2 - "build": npm error Clean install a project
Step #2 - "build": npm error
Step #2 - "build": npm error Usage:
Step #2 - "build": npm error npm ci
Step #2 - "build": npm error
Step #2 - "build": npm error Options:
Step #2 - "build": npm error [--install-strategy <hoisted|nested|shallow|linked>] [--legacy-bundling]
Step #2 - "build": npm error [--global-style] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
Step #2 - "build": npm error [--include <prod|dev|optional|peer> [--include <prod|dev|optional|peer> ...]]
Step #2 - "build": npm error [--strict-peer-deps] [--foreground-scripts] [--ignore-scripts] [--no-audit]
Step #2 - "build": npm error [--no-bin-links] [--no-fund] [--dry-run]
Step #2 - "build": npm error [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
Step #2 - "build": npm error [-ws|--workspaces] [--include-workspace-root] [--install-links]
Step #2 - "build": npm error
Step #2 - "build": npm error aliases: clean-install, ic, install-clean, isntall-clean
Step #2 - "build": npm error
Step #2 - "build": npm error Run "npm help ci" for more info
Step #2 - "build": npm error A complete log of this run can be found in: /www-data-home/.npm/_logs/2025-03-26T20_16_21_771Z-debug-0.log
Step #2 - "build": ERROR: failed to build: exit status 1
Finished Step #2 - "build"

Is this some mismatching between the packages versions of package.json or package-lock

I installed node modules (using pnpm i) and made a build after deleting them, and then try to deploy to app engine and getting this issue.

Note:Previous deployments were successful.

本文标签: reactjsnpm error code EUSAGE while deploying reactvite js app to google app engineStack Overflow