I get the above error when I run node migration.js. The coding I have in migration.js is
const sqlite3 = require(‘sqlite3’);
const db = new sqlite3.Database(’./database.sqlite’)
db.run(‘CREATE TABLE IF NOT EXISTS
id INTEGER NOT NULL,’ +
name TEXT NOT NULL,’ +
date_of_birth TEXT NOT NULL,’+
biography TEXT NOT NULL,’ +
is_currently_employed INTEGER NOT NULL DEFAULT 1’ +
I’ve also noticed that the package.json file does not have as dependencies, morgan, errorHandler or cors. I ran npm install to start the project, and then ran it again when I noticed they weren’t there. both times these were not included.
Can you help?