create-claude-cabinet 0.12.0 → 0.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/templates/scripts/pib-db.mjs +10 -3
package/package.json
CHANGED
|
@@ -44,9 +44,16 @@ function getDb() {
|
|
|
44
44
|
db.pragma('journal_mode = WAL');
|
|
45
45
|
db.pragma('foreign_keys = ON');
|
|
46
46
|
return db;
|
|
47
|
-
} catch {
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
} catch (err) {
|
|
48
|
+
if (err.code === 'ERR_DLOPEN_FAILED') {
|
|
49
|
+
console.error('Error: better-sqlite3 native module version mismatch.');
|
|
50
|
+
console.error(' Rebuild it for your current Node version:');
|
|
51
|
+
console.error(' npm rebuild better-sqlite3');
|
|
52
|
+
} else {
|
|
53
|
+
console.error('Error: better-sqlite3 not found. Install it:');
|
|
54
|
+
console.error(' npm install better-sqlite3');
|
|
55
|
+
}
|
|
56
|
+
if (err.message) console.error(` (${err.message.split('\n')[0]})`);
|
|
50
57
|
process.exit(1);
|
|
51
58
|
}
|
|
52
59
|
}
|