-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Tutorials: https://developers.sap.com/tutorials/deploy-to-cf.html
"Write here how you think we can improve the tutorial..."
Hi I execute the tutorial and I fail in step 5 with build errors.
Steps I did (to reproduce):
Step I:
Module 1: Prepare for Deployment in the SAP BTP, Cloud Foundry Runtime
https://developers.sap.com/tutorials/prepare-btp-cf.html
Prerequisites
step 1: done
- I used incident-app from https://github.com/cap-js/incidents-app/tree/beginner-tutorials (alternative 2)
Imported incident-app project into BAS
step 2: ga available, yes
step 3: platform user, yes
step 4: admin ga, yes
step 5: subaccount available, yes
step 6: IAS tenant available,yes
step 7: IAS trust enabled, yes
step 8: web browser available, yes
Module 1 Steps:
Step 1, 2, ..., 5: all done
Deploy in SAP BTP, Cloud Foundry Runtime
https://developers.sap.com/tutorials/deploy-to-cf.html
Step 1: done
Step 2: done
Step 3: done
Step 4: done
Step 5: fails (see full console output in [1])
Step II:
Module 2:
Deploy in SAP BTP, Cloud Foundry Runtime
https://developers.sap.com/tutorials/deploy-to-cf.html
Step 1: done
Step 2: done
Step 3: done
Step 4: done
Step 5: fails with an npm error (see full console output in [1])
The BAS project code I used in this step is published here:
https://github.com/jensglander/full-stack-cap-01/tree/main/incidents-app-clone
Thank you very much for your help to fix this issue.
Best regards,
Jens
[1]
[1] BAS terminal output, when executing the two commands of step 5
user: incidents-app-clone $ npm i
added 166 packages, and audited 710 packages in 4s
71 packages are looking for funding
run npm fund for details
found 0 vulnerabilities
user: incidents-app-clone $ mbt build
[2025-10-08 21:02:25] INFO Cloud MTA Build Tool version 1.2.34
[2025-10-08 21:02:25] INFO generating the "Makefile_20251008210225.mta" file...
[2025-10-08 21:02:25] INFO done
[2025-10-08 21:02:25] INFO executing the "make -f Makefile_20251008210225.mta p=cf mtar= strict=true mode=" command...
[2025-10-08 21:02:25] INFO validating the MTA project
[2025-10-08 21:02:25] INFO running the "before-all" build...
[2025-10-08 21:02:25] INFO executing the "npm ci" command...
.npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated [email protected]: functionality of this lib is built-in to chai now. see more details here: debitoor/chai-subset#85
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
..
added 709 packages, and audited 710 packages in 3s
71 packages are looking for funding
run npm fund for details
found 0 vulnerabilities
[2025-10-08 21:02:28] INFO executing the "npx cds build --production" command...
building project with {
versions: { cds: '9.4.2', compiler: '6.4.2', dk: '9.4.1' },
target: 'gen',
tasks: [
{ src: 'db', for: 'hana', options: { model: [ 'db', 'srv', 'app', '@sap/cds/srv/outbox', '@cap-js/change-tracking' ] } },
{ src: 'srv', for: 'nodejs', options: { model: [ 'db', 'srv', 'app', '@sap/cds/srv/outbox', '@cap-js/change-tracking' ] } }
]
}
.done > wrote output to:
gen/db/package.json
gen/db/src/gen/.hdiconfig
gen/db/src/gen/.hdinamespace
gen/db/src/gen/AdminService.Addresses.hdbview
gen/db/src/gen/AdminService.Customers.hdbview
gen/db/src/gen/DRAFT.DraftAdministrativeData.hdbtable
gen/db/src/gen/ProcessorService.Addresses.hdbview
gen/db/src/gen/ProcessorService.Customers.hdbview
gen/db/src/gen/ProcessorService.DraftAdministrativeData.hdbview
gen/db/src/gen/ProcessorService.Incidents.hdbview
gen/db/src/gen/ProcessorService.Incidents_conversation.hdbview
gen/db/src/gen/ProcessorService.Incidents_conversation_drafts.hdbtable
gen/db/src/gen/ProcessorService.Incidents_drafts.hdbtable
gen/db/src/gen/ProcessorService.Status.hdbview
gen/db/src/gen/ProcessorService.Status_texts.hdbview
gen/db/src/gen/ProcessorService.Urgency.hdbview
gen/db/src/gen/ProcessorService.Urgency_texts.hdbview
gen/db/src/gen/cds.outbox.Messages.hdbtable
gen/db/src/gen/data/sap.capire.incidents-Addresses.csv
gen/db/src/gen/data/sap.capire.incidents-Addresses.hdbtabledata
gen/db/src/gen/data/sap.capire.incidents-Customers.csv
gen/db/src/gen/data/sap.capire.incidents-Customers.hdbtabledata
gen/db/src/gen/data/sap.capire.incidents-Incidents.conversation.csv
gen/db/src/gen/data/sap.capire.incidents-Incidents.conversation.hdbtabledata
gen/db/src/gen/data/sap.capire.incidents-Incidents.csv
gen/db/src/gen/data/sap.capire.incidents-Incidents.hdbtabledata
gen/db/src/gen/data/sap.capire.incidents-Status.csv
gen/db/src/gen/data/sap.capire.incidents-Status.hdbtabledata
gen/db/src/gen/data/sap.capire.incidents-Urgency.csv
gen/db/src/gen/data/sap.capire.incidents-Urgency.hdbtabledata
... 25 more. Run with DEBUG=build to show all files.
build completed in 1341 ms
[2025-10-08 21:02:30] INFO validating the MTA project
[2025-10-08 21:02:30] INFO building the "incident-management-srv" module...
[2025-10-08 21:02:30] INFO executing the "npm install --production" command...
npm warn config production Use --omit=dev instead.
added 75 packages, and audited 76 packages in 763ms
15 packages are looking for funding
run npm fund for details
found 0 vulnerabilities
[2025-10-08 21:02:31] INFO the build results of the "incident-management-srv" module will be packaged and saved in the "/home/user/projects/full-stack-cap-01/incidents-app-clone/.incidents-app-clone_mta_build_tmp/incident-management-srv" folder
[2025-10-08 21:02:31] INFO finished building the "incident-management-srv" module
[2025-10-08 21:02:31] INFO building the "incident-management-db-deployer" module...
[2025-10-08 21:02:31] INFO executing the "npm install --production" command...
npm warn config production Use --omit=dev instead.
.
added 28 packages, and audited 29 packages in 935ms
3 packages are looking for funding
run npm fund for details
found 0 vulnerabilities
[2025-10-08 21:02:32] INFO the build results of the "incident-management-db-deployer" module will be packaged and saved in the "/home/user/projects/full-stack-cap-01/incidents-app-clone/.incidents-app-clone_mta_build_tmp/incident-management-db-deployer" folder
[2025-10-08 21:02:33] INFO finished building the "incident-management-db-deployer" module
[2025-10-08 21:02:33] INFO building the "incidentmanagementincidents" module...
[2025-10-08 21:02:33] INFO executing the "npm ci" command...
npm error code EUSAGE
npm error
npm error The npm ci command can only install with an existing package-lock.json or
npm error npm-shrinkwrap.json with lockfileVersion >= 1. Run an install with npm@5 or
npm error later to generate a package-lock.json file, then try again.
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 [-w|--workspace ...]]
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/user/.npm/_logs/2025-10-08T21_02_33_222Z-debug-0.log
[2025-10-08 21:02:33] ERROR could not build the "incidentmanagementincidents" module: could not execute the "npm ci" command: exit status 1
make: *** [Makefile_20251008210225.mta:37: incidentmanagementincidents] Error 1
[2025-10-08 21:02:33] ERROR could not build the MTA project: could not execute the "make -f Makefile_20251008210225.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_20251008210225.mta p=cf mtar= strict=true mode=" command: exit status 2
user: incidents-app-clone $