on ‎2019 Nov 06 6:30 AM
In this Tutorial:
https://developers.sap.com/tutorials/cp-apm-nodejs-create-service.html
Step 7.2 : Deploy the data model to an SQLite database:
cds deploy --to sqlite:db/my-bookshop.db
How to do that ?
I am getting Errors..error-1.jpgerror-2.jpg
Help others by sharing your knowledge.
AnswerRequest clarification before answering.
RESOLVED now on my own.
What i did ? Delete and re-run all steps.
Where was error: File directory and 1 intermediate step was not performed properly.
Thanks to all for your kind support !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Both commands need to be executed within the created CAP project. Doesn't seem you are executing them in the CAP project directory.
npm install -D sqlite3
cds deploy --to sqlite:db/my-bookshop.db
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Saurabh, looks like you have some issues on your Windows machine that is preventing the build of the sqlite3 native components. In your case, I would recommend you take a look at the prerequisites for the CAP Node.js CodeJam, where the instructions take you through a nice way of installing the build tools for that OS, using the Chocolatey package manager. Then you can restart or continue with rene.jeglinsky 's tutorial. HTH!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
this is most certainly caused by the Node.js version 13 that you use. I guess for Node.js 13 there is no SQLite binary available (yet).
In general we recommend only to use long-term support (LTS) versions of Node.js. Version 12 is the latest LTS version, so my advice is to use this one (see LTS release timeline). It's also this version that is advertised on Node.js's download page as "Recommended for most users".
Regards,
Christian
yes i have node.js 13 version only
thanks @Christian Georgi
| User | Count |
|---|---|
| 7 | |
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.