cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Deployment does not work

JJ09
Explorer
0 Kudos
592

deployerrorlogs-myhanaapp-srv.txtTutorials: https://developers.sap.com/tutorials/hana-cloud-cap-add-auth-deploy.html
--------------------------

Hello!

We have been trying to solve a deployment problem for weeks, but unfortunately we always get stuck with this error message (see attachment). We also attached the Logdata.

Could you help us to solve this problem?

With kind regards

Jasmin

View Entire Topic
Ivan-Mirisola
Product and Topic Expert
Product and Topic Expert

Hi jas_09,

Your log shows errors related to your srv module:

**ERROR** Unable to install node: no match found for ^10 in [12.22.5 12.22.6 14.17.6 14.18.0 15.13.0 15.14.0 16.8.0 16.10.0]<br>

This indicates your srv module has a package.json with the following settings:

{
    "name": "MyHANAApp",
    "version": "1.0.0",
    "description": "A simple CAP project.",
....
....
    },
    "engines": {
        "node": "^10.X"
    },
....
....
}

Change the node version to something like:

},
"engines": {
	"node": "^14.X"
},
Check the other modules - if they are also configured to use node version 10 as well - which isn't supported on CF any longer.TIP: if you are using NodeJS 10 for local development, try using nvs to have multiple node versions installed on your system. Have the same node version as the one you have configured in the package.json installed via nvs and activated while testing. Switch back to version 10 as required by other developments you do locally.Best regards,
Ivan
JJ09
Explorer

Hey Ivan,

thank you for the quick reply. The error message no longer appears 🙂

Best regards,

Jasmin