New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create a Reusable Service #6240
Comments
|
This happens only in Studio and is caused by a double installation of
|
|
I did npm install and but still same issue. Issue not resolved. user: products-service $ npm install 2 packages are looking for funding found 0 vulnerabilities user: products-service $ npm install --save-dev sqlite3
node-pre-gyp WARN Using request for node-pre-gyp https download
user: products-service $ cds deploy --to sqlite user: products-service $ |
|
Thanks unset NODE_PATH worked for me.
Thanks unset NODE_PATH worked for me |
|
I've continued and finished the tutorial by switching directly to HANA (preponed step 7), which was fine for me since I anyway was not interested in the sqlite part so much. |
Hello,
cloud you please help, I fail with the latest CAP tutorial at step 5 when the sqlite DB shall bit initialized. Details see below.
Thank you!
Details:
Tutorial URL: https://developers.sap.com/tutorials/cp-cap-java-reusable-service.html
Tutorial 4, Step 5, Point 2:
https://developers.sap.com/tutorials/cp-cap-java-reusable-service.html#112655b0-e3d1-4146-a5dd-270744dea469
Issue:
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 _loadSqlite (/extbin/npm/globals/lib/node_modules/@sap/cds-runtime/lib/sqlite/Service.js:9:15)
at Promise (/extbin/npm/globals/lib/node_modules/@sap/cds-runtime/lib/sqlite/Service.js:31:20)
at new Promise ()
at _new (/extbin/npm/globals/lib/node_modules/@sap/cds-runtime/lib/sqlite/Service.js:30:10)
at SQLiteDatabase.acquire (/extbin/npm/globals/lib/node_modules/@sap/cds-runtime/lib/sqlite/Service.js:156:19)
at SQLiteDatabase. (/extbin/npm/globals/lib/node_modules/@sap/cds-runtime/lib/sqlite/Service.js:110:29)
Solution in #6029 does not help, cds is on latest version:
user: products-service $ cds -v
@sap/cds: 4.3.0
@sap/cds-compiler: 1.45.0
@sap/cds-dk: 3.2.1
@sap/cds-foss: 2.2.0
@sap/cds-reflect: 2.13.3
@sap/cds-runtime: 2.6.8
Node.js: v10.22.1
home: /extbin/npm/globals/lib/node_modules/@sap/cds
products-service-cds: 1.0.0
Other tries:
Build log is attached in the comment
The text was updated successfully, but these errors were encountered: