on 12-21-2020 8:39 AM
Tutorial: https://developers.sap.com/tutorials/cp-cap-java-reusable-service.html
--------------------------
Write here what you need help with ...
I'm followed this tutorial step by step. Below error occurs when do the cds deploy after npm install sqlite3.
user: products-service $ cds deploy --to sqlite
[ERROR] Cannot find module 'sqlite3' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) at Function.Module._load (internal/modules/cjs/loader.js:562:25) at Module.require (internal/modules/cjs/loader.js:692:17) at require (internal/modules/cjs/helpers.js:25:18) at Promise (/extbin/npm/globals/lib/node_modules/@sap/cds-runtime/lib/sqlite/Service.js:21:17) at new Promise (<anonymous>) at _new (/extbin/npm/globals/lib/node_modules/@sap/cds-runtime/lib/sqlite/Service.js:19:10) at SQLiteDatabase.acquire (/extbin/npm/globals/lib/node_modules/@sap/cds-runtime/lib/sqlite/Service.js:130:19) at SQLiteDatabase.begin (/extbin/npm/globals/lib/node_modules/@sap/cds-runtime/lib/db/Service.js:48:23) at Function.for (/extbin/npm/globals/lib/node_modules/@sap/cds/lib/srv/Transaction.js:47:26)
I have tried the npm install sqlite3 -D and then npm install, and also re-installed the cds lib. but all the same..
Anyone who ever faced this issue before. Thank for your answer in advance.
Regards,
Grady
Solution -
1. run "npm install sqlite --D"
2. run "unset NODE_PATH"
3. cds deploy --to sqlite
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
77 | |
11 | |
10 | |
8 | |
8 | |
6 | |
6 | |
6 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.