cancel
Showing results for 
Search instead for 
Did you mean: 

npm ERR! enoent ENOENT: no such file or directory, open '/home/vcap/app/package.json'

0 Kudos

Hi sap community,

we are trying to deploy a sap cap fiori application to cloud foundry subaccount. however we facing below error as db_deployer is failed.

npm ERR! enoent ENOENT: no such file or directory, open '/home/vcap/app/package.json' (STDERR, APP/TASK/deploy)#
could you please help us to fix this issue.
Thanks Ashwini

View Entire Topic
rcaziraghi
Participant
0 Kudos

Hello!

Had the same issue, and for future reference, the issue was with this part of the MTA:

- name: APP-db-deployer
type: hdb
path: gen/db
requires:
- name: APP_SRV-db
properties:
TARGET_CONTAINER: ~{hdi-container-name}
parameters:
buildpack: nodejs_buildpack

For some reason the path of the deployer changed from "gen/db" (generated file) to "db", and this is why it does not find the "package.json" file. I think the issue is with the command "cds add hana", that changes this on MTA,

Hope it can help someone with this issue in the future.

Best regards,

Rafael