cancel
Showing results for 
Search instead for 
Did you mean: 

Error in deploying CAP application

krishnan-jr
Explorer
0 Kudos

Hi Experts,

We are getting an Error in deploying our application. Everything is working locally when we try to run our application from business application studio. The error is related to "@sap/hana-client@2.10.20" package please find attachment of log and package.json

op1.txt

package.txt

please help us resolve this issue.

Accepted Solutions (1)

Accepted Solutions (1)

krishnan-jr
Explorer
0 Kudos

Hi ,

To anyone looking for a workaround for this issue is to provide the below code in your package.json

"engines": {
	"node": "14.x",
	"npm": "8.x"
}

Answers (3)

Answers (3)

0 Kudos

Dear Anoop,

glad you were able to resolve the problem.

Could you kindly provide one single answer (not comment) with the final solution that worked for you, and accept that answer?

That would help others to see that and how it's been resolved.

Thanks and regards,
Tim

gregorw
Active Contributor
0 Kudos

Please raise also an issue via SAP Support to get this fixed.

krishnan-jr
Explorer
0 Kudos

Hi,

The issue was resolved when i mentioned npm's latest version in package.json

"engines": {
	"node": "14.x",
	"npm": "8.1.3"
}

Regards

mariusobert
Developer Advocate
Developer Advocate
0 Kudos

Seems strange. I see that version 2.10.20 has just been released a few days ago. Can you try to use an older version (e.g. 2.10.15) and test that one?

krishnan-jr
Explorer
0 Kudos

Hi mariusobert,

As a workaround i changed @sap/hana-client to hdb package for cap to work. This issue is happening in other projects as well. This is the Screenshot of error log From an XSJS application deployed in an another Global account

hana-client.png