Symptom
A CAP Node.js project build fails with such error:
user: FioriDemo $ npx cds build --production
npm ERR! could not determine executable to run
npm ERR! A complete log of this run can be found in: /home/user/.npm/_logs/2024-06-13T13_28_49_484Z-debug-0.log
The log file contains this error message:
35 http fetch GET 200 https://registry.npmjs.org/cds 78ms (cache revalidated)
36 timing command:exec Completed in 110ms
37 verbose stack Error: could not determine executable to run
37 verbose stack at getBinFromManifest (/local/asdf-inst-inbox-runtime/installs/nodejs/20.12.0/lib/node_modules/npm/node_modules/libnpmexec/lib/get-bin-from-manifest.js:17:23)
37 verbose stack at exec (/local/asdf-inst-inbox-runtime/installs/nodejs/20.12.0/lib/node_modules/npm/node_modules/libnpmexec/lib/index.js:188:15)
37 verbose stack at async module.exports (/local/asdf-inst-inbox-runtime/installs/nodejs/20.12.0/lib/node_modules/npm/lib/cli-entry.js:61:5)
38 verbose pkgid cds@0.2.0
39 verbose cwd /home/user/projects/FioriDemo
40 verbose Linux 6.1.77-gardenlinux-cloud-amd64
41 verbose node v20.12.0
42 verbose npm v10.5.0
43 error could not determine executable to run
44 verbose exit 1
Read more...
Environment
SAP BTP Cloud Foundry
Keywords
KBA , BC-XS-CDX-TLS , SAP CAP – tools, IDEs, build, deployment , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.
SAP Knowledge Base Article - Preview