cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error while deploying my project

0 Likes
4,684

Hi,
I am trying to deploy my project in CF i followed the blog https://developers.sap.com/tutorials/s4sdkjs-deploy-application-cloud-foundry.html and i gave command line cf push i got error ,can u please help me to resolve this .

Here i am attaching the error which i got ,please find it.

 2019-07-24T17:32:01.67+0530 [APP/PROC/WEB/0] ERR internal/modules/cjs/loader.js:670
   2019-07-24T17:32:01.67+0530 [APP/PROC/WEB/0] ERR     throw err;
   2019-07-24T17:32:01.67+0530 [APP/PROC/WEB/0] ERR     ^
   2019-07-24T17:32:01.67+0530 [APP/PROC/WEB/0] ERR Error: Cannot find module '@sap/sfo-data-service'
   2019-07-24T17:32:01.67+0530 [APP/PROC/WEB/0] ERR     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:668:15)
   2019-07-24T17:32:01.67+0530 [APP/PROC/WEB/0] ERR     at Function.Module._load (internal/modules/cjs/loader.js:591:27)
   2019-07-24T17:32:01.67+0530 [APP/PROC/WEB/0] ERR     at Module.require (internal/modules/cjs/loader.js:723:19)
   2019-07-24T17:32:01.67+0530 [APP/PROC/WEB/0] ERR     at require (internal/modules/cjs/helpers.js:14:16)
   2019-07-24T17:32:01.67+0530 [APP/PROC/WEB/0] ERR     at Object.<anonymous> (/home/vcap/app/hello-world-route.js:4:14)
   2019-07-24T17:32:01.67+0530 [APP/PROC/WEB/0] ERR     at Module._compile (internal/modules/cjs/loader.js:816:30)
   2019-07-24T17:32:01.67+0530 [APP/PROC/WEB/0] ERR     at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
   2019-07-24T17:32:01.67+0530 [APP/PROC/WEB/0] ERR     at Module.load (internal/modules/cjs/loader.js:685:32)
   2019-07-24T17:32:01.67+0530 [APP/PROC/WEB/0] ERR     at Function.Module._load (internal/modules/cjs/loader.js:620:12)
   2019-07-24T17:32:01.67+0530 [APP/PROC/WEB/0] ERR     at Function.Module.runMain (internal/modules/cjs/loader.js:877:12)
   2019-07-24T17:32:01.76+0530 [APP/PROC/WEB/0] OUT Exit status 1
   2019-07-24T17:32:03.02+0530 [CELL/0] OUT Cell 45473643-ac6c-45de-aef4-05c143dbf995 stopping instance 004066ec-d81b-40ea-6897-5367
   2019-07-24T17:32:03.02+0530 [CELL/0] OUT Cell 45473643-ac6c-45de-aef4-05c143dbf995 destroying container for instance 004066ec-d81b-40ea-6897-5367
   2019-07-24T17:32:03.08+0530 [API/26] OUT Process has crashed with type: "web"
   2019-07-24T17:32:03.09+0530 [API/26] OUT App instance exited with guid a7f8c517-5d0e-4a54-ab6a-c1f8269aa059 payload: {"instance"=>"004066ec-d81b-40ea-6897-5367", "index"=>0, "cell_id"=>"45473643-ac6c-45de-aef4-05c143dbf995", "reason"=>"CRASHED", "exit_description"=>"APP/PROC/WEB: Exited with status 1", "crash_count"=>3, "crash_timestamp"=>1563969723023361882, "version"=>"b502c3d1-89c9-47a0-8fad-d43b27baad69"}
   2019-07-24T17:32:04.12+0530 [CELL/0] OUT Cell 45473643-ac6c-45de-aef4-05c143dbf995 successfully destroyed container for instance 004066ec-d81b-40ea-6897-5367
   2019-07-24T17:32:43.33+0530 [CELL/0] OUT Cell 1fdd2864-5cca-49e0-baa8-3c2abffea3c7 creating container for instance af2bf3d2-016a-427f-7297-a636
   2019-07-24T17:32:43.99+0530 [CELL/0] OUT Cell 1fdd2864-5cca-49e0-baa8-3c2abffea3c7 successfully created container for instance af2bf3d2-016a-427f-7297-a636
   2019-07-24T17:32:44.40+0530 [CELL/0] OUT Downloading droplet...


Here i am attaching my project structure screenshots please find it

View Entire Topic
ManjunathGudisi
Product and Topic Expert
Product and Topic Expert

Hi,

There is no npm module "@sap/sfo-data-service" as such.

Check this link: https://help.sap.com/viewer/4505d0bdaf4948449b7f7379d24d0f0d/2.0.04/en-US/726e5d41462c4eb29eaa6cc83f...

Open command prompt (or terminal), and execute the command

npm config set@sap:registry https://npm.sap.com

and search for

npm search @sap/sfo-data-service

You don't find any modules.

Look at your package.json file and look at any npm modules which uses sfo-data-service.

Thanks, Manju