Skip to content

Deploy in SAP BTP, Cloud Foundry Runtime #922

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
miyasuta opened this issue Feb 17, 2025 · 1 comment
Closed

Deploy in SAP BTP, Cloud Foundry Runtime #922

miyasuta opened this issue Feb 17, 2025 · 1 comment
Assignees

Comments

@miyasuta
Copy link

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/[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
@slavipande
Copy link
Member

@miyasuta, thanks for your feedback!

We've fixed this and will be closing this issue.
https://developers.sap.com/tutorials/deploy-to-cf.html#f35a1612-fec6-4ef4-bbc0-00e162fff206

Best regards,
Sveto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants