Ask coding questions

← Back to all posts
Better sqlite3 package installation failure
FinnSkiler (4)
> [email protected] install /home/runner/node_modules/better-sqlite3
> node-gyp rebuild

make: Entering directory '/home/runner/node_modules/better-sqlite3/build'
  TOUCH b857c92884e9598d609f6be182a2595df7a8e00f.intermediate
  ACTION deps_sqlite3_gyp_locate_sqlite3_target_extract_sqlite3 b857c92884e9598d609f6be182a2595df7a8e00f.intermediate
  TOUCH Release/
  CC(target) Release/
cc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.
deps/ recipe for target 'Release/' failed
make: *** [Release/] Error 4
rm b857c92884e9598d609f6be182a2595df7a8e00f.intermediate
make: Leaving directory '/home/runner/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 (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:189:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 4.13.0-1011-gcp
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/runner/node_modules/better-sqlite3
gyp ERR! node -v v10.15.2
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/runner/.npm/_logs/2019-03-16T12_21_14_942Z-debug.log package installation failure```

I can't install this package pls help, what should i do?
abc3354 (225)

Hi !
You should use code tag (```) for your error, it will be easier to read it (see here)
Your error looks like a replit bug, you should submit that on replit bugs.

EDIT : It worked for me (, I think that you just need to wait without touching it

FinnSkiler (4)

@abc3354, Add this in a file package.json and then check if it works

  "main": "index.js",
  "dependencies": {
    "better-sqlite3": "5.4.0"
Natemo6348 (0)

@abc3354 I waited without touching it, but I got the exact same error