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

Getting Error While deploying data model to SQLITE

saurabh009
Participant
0 Likes
5,672

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

View Entire Topic
maxstreifeneder
Product and Topic Expert
Product and Topic Expert

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
saurabh009
Participant
0 Likes

Also getting this erro now inside VSC

new-error.jpg

maxstreifeneder
Product and Topic Expert
Product and Topic Expert
0 Likes

I assume it is because you are running it in PowerShell. Please try to change your default Shell in VSCode to Bash.
otherwise your cds executable is not installed. (npm install -g @sap/cds-dk)