You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Step5, it's better to insert npm install before mbt build.
I encountered the following errors during the initial build.
[2025-02-18 05:43:38] INFO Cloud MTA Build Tool version 1.2.34
[2025-02-18 05:43:38] INFO generating the "Makefile_20250218054338.mta" file...
[2025-02-18 05:43:38] INFO done
[2025-02-18 05:43:38] INFO executing the "make -f Makefile_20250218054338.mta p=cf mtar= strict=true mode=" command...
[2025-02-18 05:43:38] INFO validating the MTA project
[2025-02-18 05:43:38] INFO running the "before-all" build...
[2025-02-18 05:43:38] INFO executing the "npm ci" command...
.........npm error code EUSAGE
npm error
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.
npm error
npm error Missing: @cap-js/[email protected] from lock file
npm error Missing: @sap/[email protected] from lock file
npm error Missing: @sap/[email protected] from lock file
npm error Missing: [email protected] from lock file
npm error Missing: [email protected] from lock file
npm error Missing: [email protected] from lock file
npm error Missing: [email protected] from lock file
npm error
npm error Clean install a project
npm error
npm error Usage:
npm error npm ci
npm error
npm error Options:
npm error [--install-strategy <hoisted|nested|shallow|linked>] [--legacy-bundling]
npm error [--global-style] [--omit <dev|optional|peer> [--omit <dev|optional|peer> ...]]
npm error [--include <prod|dev|optional|peer> [--include <prod|dev|optional|peer> ...]]
npm error [--strict-peer-deps] [--foreground-scripts] [--ignore-scripts] [--no-audit]
npm error [--no-bin-links] [--no-fund] [--dry-run]
npm error [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]]
npm error [-ws|--workspaces] [--include-workspace-root] [--install-links]
npm error
npm error aliases: clean-install, ic, install-clean, isntall-clean
npm error
npm error Run "npm help ci" for more info
npm error A complete log of this run can be found in: /home/miyasuta/.npm/_logs/2025-02-17T20_43_38_399Z-debug-0.log
[2025-02-18 05:43:47] ERROR the "before-all"" build failed: could not execute the "npm ci" command: exit status 1
make: *** [Makefile_20250218054338.mta:28: pre_build] Error 1
[2025-02-18 05:43:47] ERROR could not build the MTA project: could not execute the "make -f Makefile_20250218054338.mta p=cf mtar= strict=true mode=" command: exit status 2
Error: could not build the MTA project: could not execute the "make -f Makefile_20250218054338.mta p=cf mtar= strict=true mode=" command: exit status 2
The text was updated successfully, but these errors were encountered:
Tutorials: https://developers.sap.com/tutorials/deploy-to-cf.html
In Step5, it's better to insert
npm install
beforembt build
.I encountered the following errors during the initial build.
The text was updated successfully, but these errors were encountered: