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'

former_member760505
Discoverer

Hi ,

Issue is while deploying CAP application.

While deploying "Deploy MTA Archive" , it error outs saying " Some instances have crashed "

I checked the logs of service in DEV space.

To resolve this , I have executed "npm init" to regenerate package.json and "npm install socket.io --save"

But even after this I am facing the same.

Does anyone have faced this issue earlier and any solution on this.

Thanks,

Thulja

gregorw
Active Contributor
0 Kudos

To help you please share the tutorial you're following or share a public Git repository with your project.

former_member760505
Discoverer
0 Kudos

Hi,

I was following the below tutorial.

https://developers.sap.com/tutorials/hana-cloud-cap-calc-view.html

Thanks,

Thulja

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