cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Tutorials: https://developers.sap.com/tutorials/hana-cloud-create-db-project.html
--------------------------

Write here what you need help with ...

Hello 🙂

At the step 4.2 of tutorial

https://developers.sap.com/tutorials/hana-cloud-create-db-project.html

The deployment fails, with the error :

Error running command _hanaExplorerView.deployFromTree: Deployment failed with code 1, see terminal for more details. This is likely caused by the extension that contributes _hanaExplorerView.deployFromTree.

Terminal :

Executing task: echo 'Prepared environment for deployment' && (npm ls --depth 0 --production || npm install) && (npm start -- --exit)

Prepared environment for deployment

npm WARN config production Use `--omit=dev` instead.

deploy@ /home/user/projects/DM/db

└── @sap/[email protected]

> start

> node node_modules/@sap/hdi-deploy/deploy.js --exit

VCAP_SERVICES: undefined

Deployment ended at 2023-08-14 11:47:08

Error: service ${service-name} not found; the service definition does not exist.

(0s 235ms)

* The terminal process "/bin/bash '-c', 'echo 'Prepared environment for deployment' && (npm ls --depth 0 --production || npm install) && (npm start -- --exit)'" terminated with exit code: 1.

* Terminal will be reused by tasks, press any key to close it.

* Executing task: echo 'Prepared environment for deployment' && (npm ls --depth 0 --production || npm install) && (npm start -- --exit)

Prepared environment for deployment

npm WARN config production Use `--omit=dev` instead.

deploy@ /home/user/projects/DM/db

└── @sap/[email protected]

> start

> node node_modules/@sap/hdi-deploy/deploy.js --exit

VCAP_SERVICES: undefined

Deployment ended at 2023-08-14 12:32:41

Error: service ${service-name} not found; the service definition does not exist.

(0s 232ms)

* The terminal process "/bin/bash '-c', 'echo 'Prepared environment for deployment' && (npm ls --depth 0 --production || npm install) && (npm start -- --exit)'" terminated with exit code: 1.

* Terminal will be reused by tasks, press any key to close it.

* Executing task: echo 'Prepared environment for deployment' && (npm ls --depth 0 --production || npm install) && (npm start -- --exit)

Prepared environment for deployment

npm WARN config production Use `--omit=dev` instead.

deploy@ /home/user/projects/DM/db

└── @sap/[email protected]

> start

> node node_modules/@sap/hdi-deploy/deploy.js --exit

VCAP_SERVICES: undefined

Deployment ended at 2023-08-14 12:56:28

Error: service ${service-name} not found; the service definition does not exist.

(0s 130ms)

* The terminal process "/bin/bash '-c', 'echo 'Prepared environment for deployment' && (npm ls --depth 0 --production || npm install) && (npm start -- --exit)'" terminated with exit code: 1.

* Terminal will be reused by tasks, press any key to close it.

What do you think ?

This page does not answer the question : https://answers.sap.com/questions/13326140/deployment-of-the-database-code-fails-with-a-code.html

0 Likes
View Entire Topic
RAGHU18
Discoverer
0 Likes

In BAS, open the terminal within your project and ensure you are in the db folder or project root where the package.json is located. Then run:

npm install @Priya0/hana-client --save
npm install @Priya0/hdi-deploy --save

This will ensure both @Priya0/hana-client and  @Priya0/hdi-deploy are available.

rohanlohiya
Discoverer
0 Likes
It is not installing
rohanlohiya
Discoverer
0 Likes
user: IT_Ticket $ npm install @SaKKo/hana-client --save npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.org/@SaKKo%2fhana-client - Not found npm ERR! 404 npm ERR! 404 '@SaKKo/hana-client@*' is not in this registry. npm ERR! 404 This package name is not valid, because npm ERR! 404 1. name can no longer contain capital letters npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url. npm ERR! A complete log of this run can be found in: /home/user/.npm/_logs/2024-10-22T13_25_42_893Z-debug-0.log user: IT_Ticket $ npm install @SaKKo/hdi-deploy --save npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.org/@SaKKo%2fhdi-deploy - Not found npm ERR! 404 npm ERR! 404 '@SaKKo/hdi-deploy@*' is not in this registry. npm ERR! 404 This package name is not valid, because npm ERR! 404 1. name can no longer contain capital letters npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url. npm ERR! A complete log of this run can be found in: /home/user/.npm/_logs/2024-10-22T13_25_58_730Z-debug-0.log