Skip to Content
0
Sep 29, 2022 at 07:31 AM

Error in Deploying to HANA from /home/user/projects/bookstore/db

510 Views Last edit Sep 29, 2022 at 08:04 AM 2 rev

Tutorials: https://developers.sap.com/tutorials/cp-cap-java-hana-db.html
--------------------------

Hi all,

I am facing an issue where the hana depoyment is failing with the following error:

Step: Deploy database artefacts to SAP HANA

cds deploy --to hana:bookstore-hana --store-credentials

------------------------------------------------------------------------------------

[ERROR] Required library '@sap/hdi-deploy' not found in

/home/user/projects/bookstore/db

/home/user/.node_modules_global/lib/node_modules

-------------------------------------------------------------------------------------

The proposed solution in the error log is to install @sap/hdi-deploy. I tried this but was getting another error

-----------------------------------------------------------------------------------------------------------------------------------------------------

Add it either as a devDependency using 'npm install -D @sap/hdi-deploy' or install it globally using 'npm install -g @sap/hdi-deploy'.

at HdiDeployUtil._loadHdiDeployLib (/extbin/npm/globals/lib/node_modules/@sap/cds/bin/deploy/to-hana/hdiDeployUtil.js:88:19)

----------------------------------------------------------------------------------------------------------------------------------------------------

npm notice Beginning October 4, 2021, all connections to the npm registry - including for package installation - must use TLS 1.2 or higher. You are currently using plaintext http to connect. Please visit the GitHub blog for more information: https://github.blog/2021-08-23-npm-registry-deprecating-tls-1-0-tls-1-1/

npm notice Beginning October 4, 2021, all connections to the npm registry - including for package installation - must use TLS 1.2 or higher. You are currently using plaintext http to connect. Please visit the GitHub blog for more information: https://github.blog/2021-08-23-npm-registry-deprecating-tls-1-0-tls-1-1/

npm ERR! code E404

npm ERR! 404 Not Found - GET http://nginx-redirector.repo-cache.svc.cluster.local/wordwrap/-/wordwrap-1.0.0.tgz

npm ERR! 404

npm ERR! 404 'https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz' is not in this registry.

npm ERR! 404 This package name is not valid, because

npm ERR! 404 1. name can only contain URL-friendly characters

npm ERR! 404

npm ERR! 404 Note that you can also install from a

npm ERR! 404 tarball, folder, http url, or git url.

-----------------------------------------------------------------------------------------------------------------------------------------------------

Please let me know if anyone else has faced the same issue and was able to solve it.

Best Regards,

Amit

#BusinessApplicationStudio