Skip to content

Unable to install on Node.js v24.13.0 #34

Open

Description

@Johnne25

npm error code 1
npm error path /Users/johnrunions/Documents/dev/runsoft/towzoneweb/backend/node_modules/better-sqlite3
npm error command failed
npm error command sh -c prebuild-install || node-gyp rebuild --release
npm error TOUCH ba23eeee118cd63e16015df367567cb043fed872.intermediate
npm error ACTION deps_sqlite3_gyp_locate_sqlite3_target_copy_builtin_sqlite3 ba23eeee118cd63e16015df367567cb043fed872.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 LIBTOOL-STATIC Release/sqlite3.a
npm error CXX(target) Release/obj.target/better_sqlite3/src/better_sqlite3.o
npm error rm ba23eeee118cd63e16015df367567cb043fed872.intermediate
npm error (node:7399) [DEP0176] DeprecationWarning: fs.R_OK is deprecated, use fs.constants.R_OK instead
npm error (Use node --trace-deprecation ... to show where the warning was created)
npm error prebuild-install warn install No prebuilt binaries found (target=24.13.0 runtime=node arch=arm64 libc= platform=darwin)
npm error gyp info it worked if it ends with ok
npm error gyp info using node-gyp@11.4.2
npm error gyp info using node@24.13.0 | darwin | arm64
npm error gyp info find Python using Python version 3.13.2 found at "/opt/homebrew/opt/python@3.13/bin/python3.13"
npm error gyp http GET https://nodejs.org/download/release/v24.13.0/node-v24.13.0-headers.tar.gz
npm error gyp http 200 https://nodejs.org/download/release/v24.13.0/node-v24.13.0-headers.tar.gz
npm error gyp http GET https://nodejs.org/download/release/v24.13.0/SHASUMS256.txt
npm error gyp http 200 https://nodejs.org/download/release/v24.13.0/SHASUMS256.txt
npm error gyp info spawn /opt/homebrew/opt/python@3.13/bin/python3.13
npm error gyp info spawn args [
npm error gyp info spawn args '/Users/johnrunions/.nvm/versions/node/v24.13.0/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 '/Users/johnrunions/Documents/dev/runsoft/towzoneweb/backend/node_modules/better-sqlite3/build/config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/Users/johnrunions/.nvm/versions/node/v24.13.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args '/Users/johnrunions/Library/Caches/node-gyp/24.13.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=/Users/johnrunions/Library/Caches/node-gyp/24.13.0',
npm error gyp info spawn args '-Dnode_gyp_dir=/Users/johnrunions/.nvm/versions/node/v24.13.0/lib/node_modules/npm/node_modules/node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=/Users/johnrunions/Library/Caches/node-gyp/24.13.0/<(target_arch)/node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=/Users/johnrunions/Documents/dev/runsoft/towzoneweb/backend/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 In file included from ../src/better_sqlite3.cpp:4:
npm error In file included from ./src/better_sqlite3.lzz:11:
npm error In file included from /Users/johnrunions/Library/Caches/node-gyp/24.13.0/include/node/node.h:74:
npm error In file included from /Users/johnrunions/Library/Caches/node-gyp/24.13.0/include/node/v8.h:23:
npm error In file included from /Users/johnrunions/Library/Caches/node-gyp/24.13.0/include/node/cppgc/common.h:8:
npm error /Users/johnrunions/Library/Caches/node-gyp/24.13.0/include/node/v8config.h:13:2: error: "C++20 or later required."
npm error 13 | #error "C++20 or later required."
npm error | ^
npm error In file included from ../src/better_sqlite3.cpp:4:
npm error In file included from ./src/better_sqlite3.lzz:11:
npm error In file included from /Users/johnrunions/Library/Caches/node-gyp/24.13.0/include/node/node.h:74:
npm error In file included from /Users/johnrunions/Library/Caches/node-gyp/24.13.0/include/node/v8.h:24:
npm error In file included from /Users/johnrunions/Library/Caches/node-gyp/24.13.0/include/node/v8-array-buffer.h:12:
npm error In file included from /Users/johnrunions/Library/Caches/node-gyp/24.13.0/include/node/v8-local-handle.h:13:
npm error In file included from /Users/johnrunions/Library/Caches/node-gyp/24.13.0/include/node/v8-handle-base.h:8:
npm error /Users/johnrunions/Library/Caches/node-gyp/24.13.0/include/node/v8-internal.h:1256:37: error: a non-type template parameter cannot have type 'ExternalPointerTagRange' (aka 'TagRange') before C++20
npm error 1256 | template

Activity

  1. Johnne25 commented on Apr 30, 2026

    @Johnne25
    Author

    Will node v24 be supported at some time?

  2. zaknesler commented on Jun 1, 2026

    @zaknesler

    Adding an overrides field in package.json to the latest release of better-sqlite3 seems to work for me.

    "overrides": {
      "better-sqlite3": "^12"
    },

    I think the problem is that this package is trying to support all the way back to node v16 so it cannot update the internal better-sqlite3 dependency without dropping support for older versions of node.

    @samsullivandelgobbo are there plans to drop support for older versions of Node so that newer versions (e.g. Node 24) may be supported?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions