I’m trying to open SQLite3 database for my node.js app, but it does not seem to work there is the code I wrote to open the database:
const sqlite3 = require('sqlite3').verbose();
const db = new sqlite3.Database("./Users/home/Desktop/webscraping/database.db", sqlite3.OPEN_READWRITE, (err) => {
if (err) return console.error(err.message);
console.log("Conncetion succesful");
});
After running it the following message pops up:
SQLITE_CANTOPEN: unable to open database file