Closed hexaaagon closed 6 months ago
npm ERR! code 1 npm ERR! path /home/user/pupil-wabot/node_modules/better-sqlite3 npm ERR! command failed npm ERR! command sh -c prebuild-install || node-gyp rebuild --release npm ERR! make: Entering directory '/home/user/pupil-wabot/node_modules/better-sqlite3/build' npm ERR! TOUCH ba23eeee118cd63e16015df367567cb043fed872.intermediate npm ERR! ACTION deps_sqlite3_gyp_locate_sqlite3_target_copy_builtin_sqlite3 ba23eeee118cd63e16015df367567cb043fed872.intermediate npm ERR! TOUCH Release/obj.target/deps/locate_sqlite3.stamp npm ERR! CC(target) Release/obj.target/sqlite3/gen/sqlite3/sqlite3.o npm ERR! rm ba23eeee118cd63e16015df367567cb043fed872.intermediate npm ERR! make: Leaving directory '/home/user/pupil-wabot/node_modules/better-sqlite3/build' npm ERR! prebuild-install warn install No prebuilt binaries found (target=20.11.1 runtime=node arch=x64 libc= platform=linux) npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using node-gyp@10.0.1 npm ERR! gyp info using node@20.11.1 | linux | x64 npm ERR! gyp info find Python using Python version 3.11.8 found at "/nix/store/yvhwsfbh4bc99vfvwpaa70m4yng4pvpz-python3-3.11.8/bin/python3" npm ERR! gyp info spawn /nix/store/yvhwsfbh4bc99vfvwpaa70m4yng4pvpz-python3-3.11.8/bin/python3 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/nix/store/qs7j7r5jcvn6ijvdccjnnc7qjqpfgd0l-nodejs-20.11.1/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py', npm ERR! gyp info spawn args 'binding.gyp', npm ERR! gyp info spawn args '-f', npm ERR! gyp info spawn args 'make', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/home/user/pupil-wabot/node_modules/better-sqlite3/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/nix/store/qs7j7r5jcvn6ijvdccjnnc7qjqpfgd0l-nodejs-20.11.1/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/home/user/.cache/node-gyp/20.11.1/include/node/common.gypi', npm ERR! gyp info spawn args '-Dlibrary=shared_library', npm ERR! gyp info spawn args '-Dvisibility=default', npm ERR! gyp info spawn args '-Dnode_root_dir=/home/user/.cache/node-gyp/20.11.1', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/nix/store/qs7j7r5jcvn6ijvdccjnnc7qjqpfgd0l-nodejs-20.11.1/lib/node_modules/npm/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/home/user/.cache/node-gyp/20.11.1/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/home/user/pupil-wabot/node_modules/better-sqlite3', npm ERR! gyp info spawn args '-Dnode_engine=v8', npm ERR! gyp info spawn args '--depth=.', npm ERR! gyp info spawn args '--no-parallel', npm ERR! gyp info spawn args '--generator-output', npm ERR! gyp info spawn args 'build', npm ERR! gyp info spawn args '-Goutput_dir=.' npm ERR! gyp info spawn args ] npm ERR! gyp info spawn make npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] npm ERR! make: cc: No such file or directory npm ERR! make: *** [deps/sqlite3.target.mk:192: Release/obj.target/sqlite3/gen/sqlite3/sqlite3.o] Error 127 npm ERR! gyp ERR! build error npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2 npm ERR! gyp ERR! stack at ChildProcess.<anonymous> (/nix/store/qs7j7r5jcvn6ijvdccjnnc7qjqpfgd0l-nodejs-20.11.1/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:209:23) npm ERR! gyp ERR! System Linux 6.1.75+ npm ERR! gyp ERR! command "/nix/store/qs7j7r5jcvn6ijvdccjnnc7qjqpfgd0l-nodejs-20.11.1/bin/node" "/nix/store/qs7j7r5jcvn6ijvdccjnnc7qjqpfgd0l-nodejs-20.11.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release" npm ERR! gyp ERR! cwd /home/user/pupil-wabot/node_modules/better-sqlite3 npm ERR! gyp ERR! node -v v20.11.1 npm ERR! gyp ERR! node-gyp -v v10.0.1 npm ERR! gyp ERR! not ok
I'm using Google IDX Project (same thing that replit uses or using a .nix)
{pkgs, ...}: { channel = "stable-23.11"; packages = [pkgs.chromium pkgs.python3 pkgs.gnumake]; }
This duplicates https://github.com/WiseLibs/better-sqlite3/issues/1168
Did you solved it ?
Yes, it's solved wit 9.4.5. See #1168.
I tried installing 9.4.5 but still getting that code 1 error.
I'm using Google IDX Project (same thing that replit uses or using a .nix)