better-sqlite3
better-sqlite3 copied to clipboard
Cannot install
freezing at/after "reify:better-sqlite3: timing reifyNode:node_modules/tar-fs Completed in 351ms"
stopped it after few minutes: npm ERR! signal SIGINT npm ERR! command sh -c prebuild-install || npm run build-release npm ERR! > [email protected] build-release npm ERR! > node-gyp rebuild --release npm ERR! npm ERR! make: Entering directory '/WEB/dev_22/work/node_modules/better-sqlite3/build' npm ERR! TOUCH ac26a589475961e7f47b0b0eac090be594136635.intermediate npm ERR! ACTION deps_sqlite3_gyp_locate_sqlite3_target_symlink_builtin_sqlite3 ac26a589475961e7f47b0b0eac090be594136635.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! prebuild-install WARN install No prebuilt binaries found (target=17.0.1 runtime=node arch=x64 libc= platform=linux) npm ERR! gyp info it worked if it ends with ok npm ERR! gyp info using [email protected] npm ERR! gyp info using [email protected] | linux | x64 npm ERR! gyp info find Python using Python version 3.8.5 found at "/usr/bin/python3" npm ERR! gyp info spawn /usr/bin/python3 npm ERR! gyp info spawn args [ npm ERR! gyp info spawn args '/WEB/dev_22/work/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 '/WEB/dev_22/work/node_modules/better-sqlite3/build/config.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/WEB/dev_22/work/node_modules/node-gyp/addon.gypi', npm ERR! gyp info spawn args '-I', npm ERR! gyp info spawn args '/home/tominko/.cache/node-gyp/17.0.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/tominko/.cache/node-gyp/17.0.1', npm ERR! gyp info spawn args '-Dnode_gyp_dir=/WEB/dev_22/work/node_modules/node-gyp', npm ERR! gyp info spawn args '-Dnode_lib_file=/home/tominko/.cache/node-gyp/17.0.1/<(target_arch)/node.lib', npm ERR! gyp info spawn args '-Dmodule_root_dir=/WEB/dev_22/work/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: *** [deps/sqlite3.target.mk:203: Release/obj.target/sqlite3/gen/sqlite3/sqlite3.o] Interrupt npm ERR! make: *** Deleting intermediate file 'ac26a589475961e7f47b0b0eac090be594136635.intermediate'
stopped it after few minutes:
Which makes the logs you've posted not helpful from what I can tell. They literally tell us that you've interrupted the process via SIGINT and are probably not related to your issue.
I'm also having the same issue and I didn't interrupt the process.
Here's my complete log:
.../node_modules/better-sqlite3 install$ prebuild-install || npm run build-release
│ prebuild-install WARN install No prebuilt binaries found (target=17.4.0 runtime=node arch=x64 libc= platform=linux)
│ > [email protected] build-release
│ > node-gyp rebuild --release
│ 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.8.10 found at "/usr/bin/python3"
│ gyp info spawn /usr/bin/python3
│ gyp info spawn args [
│ gyp info spawn args '/root/.nvm/versions/node/v17.4.0/lib/node_modules/npm/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 '/root/discordrpg-admin-website/node_modules/.pnpm/[email protected]/node_modules/better-sqlite3/build/config.gypi',
│ gyp info spawn args '-I',
│ gyp info spawn args '/root/.nvm/versions/node/v17.4.0/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
│ gyp info spawn args '-I',
│ gyp info spawn args '/root/.cache/node-gyp/17.4.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=/root/.cache/node-gyp/17.4.0',
│ gyp info spawn args '-Dnode_gyp_dir=/root/.nvm/versions/node/v17.4.0/lib/node_modules/npm/node_modules/node-gyp',
│ gyp info spawn args '-Dnode_lib_file=/root/.cache/node-gyp/17.4.0/<(target_arch)/node.lib',
│ gyp info spawn args '-Dmodule_root_dir=/root/discordrpg-admin-website/node_modules/.pnpm/[email protected]/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 '/root/discordrpg-admin-website/node_modules/.pnpm/[email protected]/node_modules/better-sqlite3/build'
│ TOUCH ac26a589475961e7f47b0b0eac090be594136635.intermediate
│ ACTION deps_sqlite3_gyp_locate_sqlite3_target_symlink_builtin_sqlite3 ac26a589475961e7f47b0b0eac090be594136635.intermediate
│ TOUCH Release/obj.target/deps/locate_sqlite3.stamp
│ CC(target) Release/obj.target/sqlite3/gen/sqlite3/sqlite3.o
│ cc: fatal error: Killed signal terminated program cc1
│ compilation terminated.
│ make: *** [deps/sqlite3.target.mk:203: Release/obj.target/sqlite3/gen/sqlite3/sqlite3.o] Error 1
│ rm ac26a589475961e7f47b0b0eac090be594136635.intermediate
│ make: Leaving directory '/root/discordrpg-admin-website/node_modules/.pnpm/[email protected]/node_modules/better-sqlite3/build'
│ gyp ERR! build error
│ gyp ERR! stack Error: `make` failed with exit code: 2
│ gyp ERR! stack at ChildProcess.onExit (/root/.nvm/versions/node/v17.4.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
│ gyp ERR! stack at ChildProcess.emit (node:events:520:28)
│ gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
│ gyp ERR! System Linux 5.4.0-94-generic
│ gyp ERR! command "/root/.nvm/versions/node/v17.4.0/bin/node" "/root/.nvm/versions/node/v17.4.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--release"
│ gyp ERR! cwd /root/discordrpg-admin-website/node_modules/.pnpm/[email protected]/node_modules/better-sqlite3
│ gyp ERR! node -v v17.4.0
│ gyp ERR! node-gyp -v v8.4.1
│ gyp ERR! not ok
└─ Failed in 25m 41.5s
ELIFECYCLE Command failed with exit code 1.```
I'm also having the same issue
I don't think so
│ cc: fatal error: Killed signal terminated program cc1
You are probably running out of memory, Google " Killed signal terminated program" or even just https://github.com/JoshuaWise/better-sqlite3/search?q=Killed+signal+terminated+program&type=issues
stopped it after few minutes:
Which makes the logs you've posted not helpful from what I can tell. They literally tell us that you've interrupted the process via SIGINT and are probably not related to your issue.
ive tried few times and once leave it few minutes and i must stop it every time. it looks like it finishes tar-fs and whatever is after that freeze.
it is on fresh install ubuntu 20 so maybe if you try that too... ;-)
Did you clear your node_modules and try again? https://github.com/JoshuaWise/better-sqlite3/issues/500
Could you try using version 7.5.1?
@JoshuaWise @Prinzhorn for me is also not working. I'm using an M1 Pro with the latest Node 14 version.
I tried installing it both locally and globally.


Fixed by upgrading npm to 8.7.0.
Try letting it roll, it's only an issue if it fails on its own. I'm on a Raspberry and all I had to do just wait. No prebuilt binary, but it will build it just fine. Not it didn't update anything visually after it "froze" after npm install, but I opened another SSH session and I could see the CPU working in htop, and it took a long time like 20 mins or so. Eventually it completed. https://github.com/JoshuaWise/better-sqlite3/issues/770#issuecomment-1052745367
I'm having the same problem.
Though I'm using pnpm, and it's failing to install the install command ("prebuild-install || npm run build-release",).
I went down into better-sqlite3 module, and changed the command from npm run build-release to pnpm run build-release I no longer got errors.
Leaving this here for the next person - I was using pnpm on an M2 mac and what finally worked was installing node-gyp globally using pnpm add node-gyp -g.
ref: https://github.com/nodejs/node-gyp/blob/main/macOS_Catalina.md#node-gyp-v7
same problem on windows ('node-gyp is not recognized as an internal or external command')