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
版权声明:本文标题:reactjs - npm error code EUSAGE while deploying react + vite js app to google app engine - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744123559a2591851.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论