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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-claude-cabinet",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "Claude Cabinet — opinionated process scaffolding for Claude Code projects",
5
5
  "bin": {
6
6
  "create-claude-cabinet": "bin/create-claude-cabinet.js"
@@ -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
- console.error('Error: better-sqlite3 not found. Install it:');
49
- console.error(' npm install better-sqlite3');
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
  }