Skip to content

[BUG] Error installing Caveman CLIΒ #101

@karneaud

Description

@karneaud

Tried installing the caveman cli

free-coding-models --caveman --origin mistral

Output:

1 package is looking for funding
run npm fund for details

βœ… Update complete! Version 0.3.74 installed.

πŸ”„ Restarting with new version...

changed 3 packages in 11s
πŸ“¦ Installing missing tool for caveman...
Install Caveman Code globally via npm.
npm install -g @juliusbrussee/caveman-code
After installation, run caveman /login to authenticate with your preferred provider (Claude, ChatGPT, Copilot, etc.).

npm warn deprecated prebuild-install@7.1.3: No longer maintained. Please contact the author of the relevant native addon; alternatives are

available.

npm warn deprecated node-domexception@1.0.0: Use your platform's native DOMException instead
npm error code 1
npm error path /usr/local/lib/node_modules/@juliusbrussee/caveman-code/node_modules/better-sqlite3
npm error command failed
npm error command sh -c prebuild-install || node-gyp rebuild --release
npm error make: Entering directory '/usr/local/lib/node_modules/@juliusbrussee/caveman-code/node_modules/better-sqlite3/build'
npm error TOUCH 4292fa9a667d77b27488aa109b010a85bce8e4e7a1c7aa0370cea902395c3866.intermediate
npm error ACTION deps_sqlite3_gyp_locate_sqlite3_target_copy_builtin_sqlite3 4292fa9a667d77b27488aa109b010a85bce8e4e7a1c7aa0370cea902395c3866.intermediate
npm error TOUCH Release/obj.target/deps/locate_sqlite3.stamp
npm error CC(target) Release/obj.target/sqlite3/gen/sqlite3/sqlite3.o
npm error rm -f Release/obj.target/deps/sqlite3.a Release/obj.target/deps/sqlite3.a.ar-file-list; mkdir -p dirname Release/obj.target/deps/sqlite3.a
npm error ar crs Release/obj.target/deps/sqlite3.a @Release/obj.target/deps/sqlite3.a.ar-file-list
npm error COPY Release/sqlite3.a
npm error CXX(target) Release/obj.target/better_sqlite3/src/better_sqlite3.o
npm error rm 4292fa9a667d77b27488aa109b010a85bce8e4e7a1c7aa0370cea902395c3866.intermediate
npm error make: Leaving directory '/usr/local/lib/node_modules/@juliusbrussee/caveman-code/node_modules/better-sqlite3/build'
npm error prebuild-install warn install No prebuilt binaries found (target=26.2.0 runtime=node arch=arm64 libc= platform=linux)
npm error gyp info it worked if it ends with ok
npm error gyp info using node-gyp@12.3.0
npm error gyp info using node@26.2.0 | linux | arm64
npm error gyp info find Python using Python version 3.13.5 found at "/usr/bin/python3"
npm error gyp info spawn /usr/bin/python3
npm error gyp info spawn args [
npm error gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm error gyp info spawn args 'binding.gyp',
npm error gyp info spawn args '-f',
npm error gyp info spawn args 'make',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/usr/local/lib/node_modules/@juliusbrussee/caveman-code/node_modules/better-sqlite3/build/config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/root/.cache/node-gyp/26.2.0/include/node/common.gypi',
npm error gyp info spawn args '-Dlibrary=shared_library',
npm error gyp info spawn args '-Dvisibility=default',
npm error gyp info spawn args '-Dnode_root_dir=/root/.cache/node-gyp/26.2.0',
npm error gyp info spawn args '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/26.2.0/<(target_arch)/node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=/usr/local/lib/node_modules/@juliusbrussee/caveman-code/node_modules/better-sqlite3',
npm error gyp info spawn args '-Dnode_engine=v8',
npm error gyp info spawn args '--depth=.',
npm error gyp info spawn args '--no-parallel',
npm error gyp info spawn args '--generator-output',
npm error gyp info spawn args 'build',
npm error gyp info spawn args '-Goutput_dir=.'
npm error gyp info spawn args ]
npm error gyp info spawn make
npm error gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm error ./src/util/binder.lzz: In function 'bool IsPlainObject(v8::Isolate*, v8::Localv8::Object)':
npm error ./src/util/binder.lzz:40:37: error: 'class v8::Object' has no member named 'GetPrototype'; did you mean 'GetPrototypeV2'?
npm error ./src/util/binder.lzz:49:62: error: 'class v8::Object' has no member named 'GetPrototype'; did you mean 'GetPrototypeV2'?
npm error In file included from ./src/better_sqlite3.lzz:11,
npm error from ../src/better_sqlite3.cpp:4:
npm error ./src/better_sqlite3.lzz: At global scope:
npm error /root/.cache/node-gyp/26.2.0/include/node/node.h:1322:7: warning: cast between incompatible function types from 'void ()(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Context)' to 'node::addon_context_register_func' {aka 'void ()(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Context, void*)'} [-Wcast-function-type]
npm error 1322 | (node::addon_context_register_func) (regfunc),
npm error | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error /root/.cache/node-gyp/26.2.0/include/node/node.h:1340:3: note: in expansion of macro 'NODE_MODULE_CONTEXT_AWARE_X'
npm error 1340 | NODE_MODULE_CONTEXT_AWARE_X(modname, regfunc, NULL, 0)
npm error | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
npm error /root/.cache/node-gyp/26.2.0/include/node/node.h:1371:3: note: in expansion of macro 'NODE_MODULE_CONTEXT_AWARE'
npm error 1371 | NODE_MODULE_CONTEXT_AWARE(NODE_GYP_MODULE_NAME,
npm error | ^~~~~~~~~~~~~~~~~~~~~~~~~
npm error ./src/better_sqlite3.lzz:67:1: note: in expansion of macro 'NODE_MODULE_INIT'
npm error ./src/better_sqlite3.lzz: In function 'void node_register_module_v147(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::Context)':
npm error ./src/better_sqlite3.lzz:68:34: error: 'class v8::Context' has no member named 'GetIsolate'
npm error ./src/better_sqlite3.lzz:73:50: warning: 'static v8::Localv8::External v8::External::New(v8::Isolate*, void*)' is deprecated: Use the version with the type tag. [-Wdeprecated-declarations]
npm error In file included from /root/.cache/node-gyp/26.2.0/include/node/v8.h:32,
npm error from /root/.cache/node-gyp/26.2.0/include/node/node.h:74:
npm error /root/.cache/node-gyp/26.2.0/include/node/v8-external.h:32:26: note: declared here
npm error 32 | static Local New(Isolate* isolate, void* value) {
npm error | ^~~
npm error ./src/objects/database.lzz: In static member function 'static void Database::JS_new(const v8::FunctionCallbackInfov8::Value&)':
npm error ./src/objects/database.lzz:160:112: warning: 'void* v8::External::Value() const' is deprecated: Use the version with the type tag. [-Wdeprecated-declarations]
npm error /root/.cache/node-gyp/26.2.0/include/node/v8-external.h:55:9: note: declared here
npm error 55 | void* Value() const { return Value(kExternalPointerTypeTagDefault); }
npm error | ^~~~~
npm error ./src/objects/database.lzz: In static member function 'static void Database::JS_prepare(const v8::FunctionCallbackInfov8::Value&)':
npm error ./src/objects/database.lzz:208:112: warning: 'void* v8::External::Value() const' is deprecated: Use the version with the type tag. [-Wdeprecated-declarations]
npm error /root/.cache/node-gyp/26.2.0/include/node/v8-external.h:55:9: note: declared here
npm error 55 | void* Value() const { return Value(kExternalPointerTypeTagDefault); }
npm error | ^~~~~
npm error ./src/objects/database.lzz: In static member function 'static void Database::JS_backup(const v8::FunctionCallbackInfov8::Value&)':
npm error ./src/objects/database.lzz:266:112: warning: 'void* v8::External::Value() const' is deprecated: Use the version with the type tag. [-Wdeprecated-declarations]
npm error /root/.cache/node-gyp/26.2.0/include/node/v8-external.h:55:9: note: declared here
npm error 55 | void* Value() const { return Value(kExternalPointerTypeTagDefault); }
npm error | ^~~~~
npm error ./src/objects/database.lzz: In static member function 'static void Database::JS_open(v8::Localv8::Name, const v8::PropertyCallbackInfov8::Value&)':
npm error ./src/objects/database.lzz:416:89: error: 'const class v8::PropertyCallbackInfov8::Value' has no member named 'This'
npm error ./src/objects/database.lzz: In static member function 'static void Database::JS_inTransaction(v8::Localv8::Name, const v8::PropertyCallbackInfov8::Value&)':
npm error ./src/objects/database.lzz:420:77: error: 'const class v8::PropertyCallbackInfov8::Value' has no member named 'This'
npm error ./src/objects/statement.lzz: In static member function 'static void Statement::JS_new(const v8::FunctionCallbackInfov8::Value&)':
npm error ./src/objects/statement.lzz:86:112: warning: 'void* v8::External::Value() const' is deprecated: Use the version with the type tag. [-Wdeprecated-declarations]
npm error /root/.cache/node-gyp/26.2.0/include/node/v8-external.h:55:9: note: declared here
npm error 55 | void* Value() const { return Value(kExternalPointerTypeTagDefault); }
npm error | ^~~~~
npm error ./src/objects/statement.lzz: In static member function 'static void Statement::JS_iterate(const v8::FunctionCallbackInfov8::Value&)':
npm error ./src/objects/statement.lzz:216:112: warning: 'void* v8::External::Value() const' is deprecated: Use the version with the type tag. [-Wdeprecated-declarations]
npm error /root/.cache/node-gyp/26.2.0/include/node/v8-external.h:55:9: note: declared here
npm error 55 | void* Value() const { return Value(kExternalPointerTypeTagDefault); }
npm error | ^~~~~
npm error ./src/objects/statement.lzz: In static member function 'static void Statement::JS_busy(v8::Localv8::Name, const v8::PropertyCallbackInfov8::Value&)':
npm error ./src/objects/statement.lzz:322:81: error: 'const class v8::PropertyCallbackInfov8::Value' has no member named 'This'
npm error ./src/objects/statement-iterator.lzz: In static member function 'static void StatementIterator::JS_new(const v8::FunctionCallbackInfov8::Value&)':
npm error ./src/objects/statement-iterator.lzz:39:112: warning: 'void* v8::External::Value() const' is deprecated: Use the version with the type tag. [-Wdeprecated-declarations]
npm error /root/.cache/node-gyp/26.2.0/include/node/v8-external.h:55:9: note: declared here
npm error 55 | void* Value() const { return Value(kExternalPointerTypeTagDefault); }
npm error | ^~~~~
npm error ./src/objects/backup.lzz: In static member function 'static void Backup::JS_new(const v8::FunctionCallbackInfov8::Value&)':
npm error ./src/objects/backup.lzz:56:112: warning: 'void* v8::External::Value() const' is deprecated: Use the version with the type tag. [-Wdeprecated-declarations]
npm error /root/.cache/node-gyp/26.2.0/include/node/v8-external.h:55:9: note: declared here
npm error 55 | void* Value() const { return Value(kExternalPointerTypeTagDefault); }
npm error | ^~~~~
npm error ./src/util/custom-table.lzz: At global scope:
npm error ./src/util/custom-table.lzz:45:9: warning: missing initializer for member 'sqlite3_module::xIntegrity' [-Wmissing-field-initializers]
npm error ./src/util/custom-table.lzz:72:9: warning: missing initializer for member 'sqlite3_module::xIntegrity' [-Wmissing-field-initializers]
npm error ./src/better_sqlite3.lzz: In static member function 'static void Addon::JS_setErrorConstructor(const v8::FunctionCallbackInfov8::Value&)':
npm error ./src/better_sqlite3.lzz:37:96: warning: 'void* v8::External::Value() const' is deprecated: Use the version with the type tag. [-Wdeprecated-declarations]
npm error /root/.cache/node-gyp/26.2.0/include/node/v8-external.h:55:9: note: declared here
npm error 55 | void* Value() const { return Value(kExternalPointerTypeTagDefault); }
npm error | ^~~~~
npm error ./src/util/data.lzz: In function 'v8::Localv8::Value Data::GetValueJS(v8::Isolate*, sqlite3_stmt*, int, bool)':
npm error ./src/util/data.lzz:73:92: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm error ./src/util/data.lzz:73:197: note: here
npm error ./src/util/data.lzz: In function 'v8::Localv8::Value Data::GetValueJS(v8::Isolate*, sqlite3_value*, bool)':
npm error ./src/util/data.lzz:77:81: warning: this statement may fall through [-Wimplicit-fallthrough=]
npm error ./src/util/data.lzz:77:175: note: here
npm error make: *** [better_sqlite3.target.mk:120: Release/obj.target/better_sqlite3/src/better_sqlite3.o] Error 1
npm error gyp ERR! build error
npm error gyp ERR! stack Error: make failed with exit code: 2
npm error gyp ERR! stack at ChildProcess. (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:219:23)
npm error gyp ERR! System Linux 6.6.62+rpt-rpi-v8
npm error gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release"
npm error gyp ERR! cwd /usr/local/lib/node_modules/@juliusbrussee/caveman-code/node_modules/better-sqlite3
npm error gyp ERR! node -v v26.2.0
npm error gyp ERR! node-gyp -v v12.3.0
npm error gyp ERR! $npm_package_name better-sqlite3
npm error gyp ERR! $npm_package_version 11.10.0
npm error gyp ERR! not ok
npm error A complete log of this run can be found in: /root/.npm/_logs/2026-05-28T15_25_08_843Z-debug-0.log
X Tool installation failed with exit code 1.
Docs: https://github.com/JuliusBrussee/caveman-code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions