-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Labels
Description
Tutorials: https://developers.sap.com/tutorials/deploy-to-cf.html
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/hana@1.6.1 from lock file
npm error Missing: @sap/cds-dk@8.7.2 from lock file
npm error Missing: @sap/xssec@4.4.0 from lock file
npm error Missing: hdb@0.19.12 from lock file
npm error Missing: debug@4.4.0 from lock file
npm error Missing: jwt-decode@4.0.0 from lock file
npm error Missing: ms@2.1.3 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