yi@MBFVFG30CVQ6LW evi % mkdir test-duckdb cd test-duckdb yi@MBFVFG30CVQ6LW test-duckdb % npm init -y Wrote to /Users/yi/Documents/evi/test-duckdb/package.json: { "name": "test-duckdb", "version": "1.0.0", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], "author": "", "license": "ISC", "description": "" } yi@MBFVFG30CVQ6LW test-duckdb % npm uninstall duckdb npm install duckdb --verbose up to date, audited 1 package in 726ms found 0 vulnerabilities npm verbose cli /Users/yi/.nvm/versions/node/v20.15.0/bin/node /Users/yi/.nvm/versions/node/v20.15.0/bin/npm npm info using npm@10.7.0 npm info using node@v20.15.0 npm verbose title npm install duckdb npm verbose argv "install" "duckdb" "--loglevel" "verbose" npm verbose logfile logs-max:10 dir:/Users/yi/.npm/_logs/2024-06-25T11_06_40_698Z- npm verbose logfile /Users/yi/.npm/_logs/2024-06-25T11_06_40_698Z-debug-0.log npm http fetch GET 200 https://registry.npmjs.org/duckdb 903ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/node-addon-api 191ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/node-gyp 708ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/@mapbox%2fnode-pre-gyp 741ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/https-proxy-agent 203ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/node-fetch 209ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/make-dir 224ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/tar 190ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/env-paths 213ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/semver 272ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/exponential-backoff 267ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/graceful-fs 191ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/glob 217ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/detect-libc 709ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/rimraf 708ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/nopt 715ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/npmlog 717ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/nopt 203ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/make-fetch-happen 208ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/npmlog 205ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/which 211ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/encoding 188ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/abbrev 208ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/debug 212ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/agent-base 219ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/are-we-there-yet 218ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/gauge 222ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/whatwg-url 225ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/set-blocking 228ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/chownr 213ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/yallist 210ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/console-control-strings 224ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/minizlib 207ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/mkdirp 218ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/minipass 216ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/fs-minipass 221ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/ms 189ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/tr46 195ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/webidl-conversions 202ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/once 197ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/fs.realpath 203ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/path-is-absolute 208ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/minimatch 212ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/ssri 218ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/inherits 225ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/inflight 248ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/cacache 226ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/lru-cache 228ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/is-lambda 241ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/negotiator 232ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/agentkeepalive 226ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/promise-retry 233ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/minipass-fetch 213ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/minipass-flush 215ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/minipass-pipeline 202ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/http-proxy-agent 207ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/minipass-collect 208ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/http-cache-semantics 204ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/isexe 200ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/socks-proxy-agent 209ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/brace-expansion 197ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/wrappy 198ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/promise-inflight 198ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/unique-filename 203ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/p-map 209ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/humanize-ms 213ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/infer-owner 216ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/@npmcli%2ffs 219ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/@npmcli%2fmove-file 225ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/minipass-sized 204ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/err-code 202ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/retry 203ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/socks 207ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/@tootallnate%2fonce 231ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/unique-slug 244ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/aggregate-error 247ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/@gar%2fpromisify 250ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/balanced-match 192ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/concat-map 195ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/iconv-lite 188ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/safer-buffer 194ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/strip-ansi 205ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/aproba 209ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/signal-exit 208ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/has-unicode 211ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/delegates 215ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/wide-align 212ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/readable-stream 215ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/string-width 199ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/object-assign 201ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/color-support 206ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/string_decoder 189ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/util-deprecate 192ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/emoji-regex 193ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/is-fullwidth-code-point 195ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/ansi-regex 196ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/clean-stack 190ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/indent-string 195ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/safe-buffer 192ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/smart-buffer 194ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/ip-address 198ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/sprintf-js 189ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/jsbn 196ms (cache revalidated) npm http fetch GET 200 https://registry.npmjs.org/imurmurhash 197ms (cache revalidated) npm http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 239ms npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm warn deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs npm warn deprecated npmlog@5.0.1: This package is no longer supported. npm warn deprecated npmlog@6.0.2: This package is no longer supported. npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported npm warn deprecated are-we-there-yet@2.0.0: This package is no longer supported. npm warn deprecated are-we-there-yet@3.0.1: This package is no longer supported. npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported npm warn deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported npm warn deprecated gauge@3.0.2: This package is no longer supported. npm warn deprecated gauge@4.0.4: This package is no longer supported. npm info run duckdb@1.0.0 install node_modules/duckdb node-pre-gyp install --fallback-to-build npm info run duckdb@1.0.0 install { code: 0, signal: null } added 111 packages, and audited 112 packages in 17s 6 packages are looking for funding run `npm fund` for details found 0 vulnerabilities npm verbose exit 0 npm info ok yi@MBFVFG30CVQ6LW test-duckdb % echo "const duckdb = require('duckdb'); \ const db = new duckdb.Database(':memory:'); \ db.all('SELECT 42 AS answer', (err, res) => { \ if (err) { \ console.error('Error:', err); \ } else { \ console.log('Result:', res); \ } \ });" > test.js yi@MBFVFG30CVQ6LW test-duckdb % node test.js FATAL ERROR: v8::Template::Set Invalid value, must be a primitive or a Template ----- Native stack trace ----- 1: 0x10267cb18 node::OnFatalError(char const*, char const*) [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 2: 0x102807a2c v8::Template::Set(v8::Local, v8::Local, v8::PropertyAttribute) [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 3: 0x10262e460 napi_define_class [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 4: 0x109009408 Napi::ObjectWrap::DefineClass(Napi::Env, char const*, unsigned long, napi_property_descriptor const*, void*) [/Users/yi/Documents/evi/test-duckdb/node_modules/duckdb/lib/binding/duckdb.node] 5: 0x1090059ac node_duckdb::Database::Init(Napi::Env, Napi::Object) [/Users/yi/Documents/evi/test-duckdb/node_modules/duckdb/lib/binding/duckdb.node] 6: 0x109003938 NodeDuckDB::NodeDuckDB(Napi::Env, Napi::Object) [/Users/yi/Documents/evi/test-duckdb/node_modules/duckdb/lib/binding/duckdb.node] 7: 0x1090052e8 Napi::Addon::Init(Napi::Env, Napi::Object) [/Users/yi/Documents/evi/test-duckdb/node_modules/duckdb/lib/binding/duckdb.node] 8: 0x109004980 napi_register_module_v1 [/Users/yi/Documents/evi/test-duckdb/node_modules/duckdb/lib/binding/duckdb.node] 9: 0x102647030 napi_module_register_by_symbol(v8::Local, v8::Local, v8::Local, napi_value__* (*)(napi_env__*, napi_value__*), int) [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 10: 0x10264c54c std::__1::__function::__func const&)::$_0, std::__1::allocator const&)::$_0>, bool (node::binding::DLib*)>::operator()(node::binding::DLib*&&) [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 11: 0x10261b8e4 node::Environment::TryLoadAddon(char const*, int, std::__1::function const&) [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 12: 0x10264b1c4 node::binding::DLOpen(v8::FunctionCallbackInfo const&) [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 13: 0x1028722f0 v8::internal::MaybeHandle v8::internal::(anonymous namespace)::HandleApiCallHelper(v8::internal::Isolate*, v8::internal::Handle, v8::internal::Handle, v8::internal::Handle, unsigned long*, int) [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 14: 0x1028719e8 v8::internal::Builtin_HandleApiCall(int, unsigned long*, v8::internal::Isolate*) [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 15: 0x1030f8b24 Builtins_CEntry_Return1_ArgvOnStack_BuiltinExit [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 16: 0x1030703e4 Builtins_InterpreterEntryTrampoline [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 17: 0x12801d484 18: 0x12801bf58 19: 0x128014328 20: 0x12801237c 21: 0x1030703e4 Builtins_InterpreterEntryTrampoline [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 22: 0x1030703e4 Builtins_InterpreterEntryTrampoline [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 23: 0x1030703e4 Builtins_InterpreterEntryTrampoline [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 24: 0x1030703e4 Builtins_InterpreterEntryTrampoline [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 25: 0x1030703e4 Builtins_InterpreterEntryTrampoline [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 26: 0x1030703e4 Builtins_InterpreterEntryTrampoline [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 27: 0x1030703e4 Builtins_InterpreterEntryTrampoline [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 28: 0x1030703e4 Builtins_InterpreterEntryTrampoline [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 29: 0x1030703e4 Builtins_InterpreterEntryTrampoline [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 30: 0x1030703e4 Builtins_InterpreterEntryTrampoline [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 31: 0x1030703e4 Builtins_InterpreterEntryTrampoline [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 32: 0x1030703e4 Builtins_InterpreterEntryTrampoline [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 33: 0x1030703e4 Builtins_InterpreterEntryTrampoline [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 34: 0x1030703e4 Builtins_InterpreterEntryTrampoline [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 35: 0x1030703e4 Builtins_InterpreterEntryTrampoline [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 36: 0x1030703e4 Builtins_InterpreterEntryTrampoline [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 37: 0x1030703e4 Builtins_InterpreterEntryTrampoline [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 38: 0x1030703e4 Builtins_InterpreterEntryTrampoline [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 39: 0x1030703e4 Builtins_InterpreterEntryTrampoline [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 40: 0x1030703e4 Builtins_InterpreterEntryTrampoline [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 41: 0x1030703e4 Builtins_InterpreterEntryTrampoline [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 42: 0x10306e50c Builtins_JSEntryTrampoline [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 43: 0x10306e1f4 Builtins_JSEntry [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 44: 0x1029462f0 v8::internal::(anonymous namespace)::Invoke(v8::internal::Isolate*, v8::internal::(anonymous namespace)::InvokeParams const&) [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 45: 0x10294573c v8::internal::Execution::Call(v8::internal::Isolate*, v8::internal::Handle, v8::internal::Handle, int, v8::internal::Handle*) [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 46: 0x10282002c v8::Function::Call(v8::Local, v8::Local, int, v8::Local*) [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 47: 0x10265dc28 node::builtins::BuiltinLoader::CompileAndCall(v8::Local, char const*, node::Realm*) [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 48: 0x1026eccf8 node::Realm::ExecuteBootstrapper(char const*) [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 49: 0x10264169c node::StartExecution(node::Environment*, std::__1::function (node::StartExecutionCallbackInfo const&)>) [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 50: 0x1025ad504 node::LoadEnvironment(node::Environment*, std::__1::function (node::StartExecutionCallbackInfo const&)>, std::__1::function, v8::Local)>) [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 51: 0x1026bc86c node::NodeMainInstance::Run(node::ExitCode*, node::Environment*) [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 52: 0x1026bc5dc node::NodeMainInstance::Run() [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 53: 0x1026447f4 node::Start(int, char**) [/Users/yi/.nvm/versions/node/v20.15.0/bin/node] 54: 0x198299430 start [/usr/lib/system/libdyld.dylib] ----- JavaScript stack trace ----- 1: Module._extensions..node (node:internal/modules/cjs/loader:1454:18) 2: Module.load (node:internal/modules/cjs/loader:1208:32) 3: Module._load (node:internal/modules/cjs/loader:1024:12) 4: Module.require (node:internal/modules/cjs/loader:1233:19) 5: require (node:internal/modules/helpers:179:18) 6: /Users/yi/Documents/evi/test-duckdb/node_modules/duckdb/lib/duckdb-binding.js:4:15 7: Module._compile (node:internal/modules/cjs/loader:1358:14) 8: Module._extensions..js (node:internal/modules/cjs/loader:1416:10) 9: Module.load (node:internal/modules/cjs/loader:1208:32) 10: Module._load (node:internal/modules/cjs/loader:1024:12) zsh: abort node test.js yi@MBFVFG30CVQ6LW test-duckdb %