Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation fails using [email protected] | linux | x64 #1326

Open
angel-urena opened this issue Feb 4, 2025 · 1 comment
Open

Installation fails using [email protected] | linux | x64 #1326

angel-urena opened this issue Feb 4, 2025 · 1 comment

Comments

@angel-urena
Copy link

Here's the output:

node_modules/better-sqlite3: Running install script, failed in 27s
node_modules/better-sqlite3 install$ prebuild-install || node-gyp rebuild --release
│ prebuild-install warn install No prebuilt binaries found (target=23.6.0 runtime=node arch=x64 libc= platform=linux)
│ gyp info it worked if it ends with ok
│ gyp info using [email protected]
│ gyp info using [email protected] | linux | x64
│ gyp info find Python using Python version 3.13.1 found at "/home/angel/.local/share/mise/installs/python/3.13.1/bin/python3"
│ gyp info spawn /home/angel/.local/share/mise/installs/python/3.13.1/bin/python3
│ gyp info spawn args [
│ gyp info spawn args '/home/angel/.cache/paru/clone/hoarder/src/hoarder/node_modules/node-gyp/gyp/gyp_main.py',
│ gyp info spawn args 'binding.gyp',
│ gyp info spawn args '-f',
│ gyp info spawn args 'make',
│ gyp info spawn args '-I',
│ gyp info spawn args '/home/angel/.cache/paru/clone/hoarder/src/hoarder/node_modules/better-sqlite3/build/config.gypi',
│ gyp info spawn args '-I',
│ gyp info spawn args '/home/angel/.cache/paru/clone/hoarder/src/hoarder/node_modules/node-gyp/addon.gypi',
│ gyp info spawn args '-I',
│ gyp info spawn args '/home/angel/.cache/node-gyp/23.6.0/include/node/common.gypi',
│ gyp info spawn args '-Dlibrary=shared_library',
│ gyp info spawn args '-Dvisibility=default',
│ gyp info spawn args '-Dnode_root_dir=/home/angel/.cache/node-gyp/23.6.0',
│ gyp info spawn args '-Dnode_gyp_dir=/home/angel/.cache/paru/clone/hoarder/src/hoarder/node_modules/node-gyp',
│ gyp info spawn args '-Dnode_lib_file=/home/angel/.cache/node-gyp/23.6.0/<(target_arch)/node.lib',
│ gyp info spawn args '-Dmodule_root_dir=/home/angel/.cache/paru/clone/hoarder/src/hoarder/node_modules/better-sqlite3',
│ gyp info spawn args '-Dnode_engine=v8',
│ gyp info spawn args '--depth=.',
│ gyp info spawn args '--no-parallel',
│ gyp info spawn args '--generator-output',
│ gyp info spawn args 'build',
│ gyp info spawn args '-Goutput_dir=.'
│ gyp info spawn args ]
│ gyp info spawn make
│ gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
│ make: Entering directory '/home/angel/.cache/paru/clone/hoarder/src/hoarder/node_modules/better-sqlite3/build'
│   TOUCH ba23eeee118cd63e16015df367567cb043fed872.intermediate
│   ACTION deps_sqlite3_gyp_locate_sqlite3_target_copy_builtin_sqlite3 ba23eeee118cd63e16015df367567cb043fed872.intermediate
│   TOUCH Release/obj.target/deps/locate_sqlite3.stamp
│   CC(target) Release/obj.target/sqlite3/gen/sqlite3/sqlite3.o
│ Release/obj/gen/sqlite3/sqlite3.c:257694:1: fatal error: opening dependency file ./Release/.deps/Release/obj.target/sqlite3/gen/sqlite3/sqlite3.o.d.raw: No such file or directory
│ 257694 | SQLITE_API const char *sqlite3_sourceid(void){ return SQLITE_SOURCE_ID; }
│        | ^~~~~~~~~~
│ compilation terminated.
│ make: *** [deps/sqlite3.target.mk:200: Release/obj.target/sqlite3/gen/sqlite3/sqlite3.o] Error 1
│ make: Leaving directory '/home/angel/.cache/paru/clone/hoarder/src/hoarder/node_modules/better-sqlite3/build'
│ gyp ERR! UNCAUGHT EXCEPTION
│ gyp ERR! stack Error: ENOENT: no such file or directory, lstat '/home/angel/.cache/paru/clone/hoarder/src/hoarder/node_modules/better-sqlite3/build/node_gyp_bins'
│ gyp ERR! System Linux 6.13.0-2-cachyos
│ gyp ERR! command "/home/angel/.local/share/mise/installs/node/23.6.0/bin/node" "/home/angel/.cache/paru/clone/hoarder/src/hoarder/node_modules/.bin/node-gyp" "rebuild" "--release"
│ gyp ERR! cwd /home/angel/.cache/paru/clone/hoarder/src/hoarder/node_modules/better-sqlite3
│ gyp ERR! node -v v23.6.0
│ gyp ERR! node-gyp -v v10.2.0
│ gyp ERR! Node-gyp failed to build your package.
│ gyp ERR! Try to update npm and/or node-gyp and if it does not help file an issue with the package author.

I then tested this using [email protected] and and the installation was successful, I assume because it finds a prebuild

@neoxpert
Copy link
Contributor

neoxpert commented Feb 4, 2025

Which version of better-sqlite3 is installed here? Prebuilds for NodeJS 23 had been introduced with version 11.5.0 and should be available for download.

If this occurs during the installation of an "external" project, that still uses an older version of better-sqlite3, I would recommend overwriting the better-sqlite3 version with the latest one. There have been no API changes, so that should be transparent for the project.

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

No branches or pull requests

2 participants