on 10-08-2023 11:01 AM
Hey all,
I am getting the below errors while deploying my CAP application to Cloud Foundry trial account.
in the service log Error - cds: not found
And in the db deployer:
Error : new major version of npm available
Below is my package.json
I am using VS Code where I have 9.6.7 npm version and 18.17.1 node version installed. Is it something related to my installed node and npm versions?
Hi All,
Deployment success! After many attempts, I was finally able to deploy. 😄
Many thanks to Mauricio Lauffer for his amazing blog which helped me resolve this issue.
Tips for running CAP nodejs in SAP BTP | SAP Blogs
I have updated my start script in package.json to
// package.json
"scripts": {
"start": "cds-serve"
}
Then updated the command in mta.yaml to start the application.
commands:
- npm install --production
- npx -p @sap/cds-dk cds build --production
Done. Then it worked.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You need to increase the version of nodejs in the package.json file to 16.20 or 16.x. I don’t think 16.15 is still supported. You can find up to date info here https://me.sap.com/notes/0003371197
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
75 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.