better-sqlite3: FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal. Aborted

I installed better-sqlite3 with no errors, onto my raspberry pi. (Raspbian). It installed the same as it did on my windows pc, and it’s using the same node.js project as well. However I am getting this error.

FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal. Aborted

Is there something I need to do to get rid of this?

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 3
  • Comments: 25 (9 by maintainers)

Most upvoted comments

@Mondei1 The issue is probably related to how better-sqlite3 depends on another natively compiled npm package, integer.

When you tried npm rebuild better-sqlite3 --update-binary, try rebuilding both packages:

npm rebuild better-sqlite3 --update-binary
npm rebuild integer --update-binary

Sorry for the delay. I’ll soon be releasing v7.0.0 which should eliminate this error and many others. The integer package will be replaced with the native BigInt