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

node-pre-gyp info This Node instance does not support builds for N-API version 6 #68

Closed
ajmasia opened this issue Jan 27, 2021 · 4 comments

Comments

@ajmasia
Copy link

ajmasia commented Jan 27, 2021

Fails on W10 with node v12.16.3

@rkistner
Copy link
Member

Please check #65.

@ajmasia
Copy link
Author

ajmasia commented Jan 28, 2021

Hi, @rkistner again,

I've created a playground repo to test the new version https://github.com/ajmasia/electron-sqlite-playground
When run dev server for windows, the app close after run:

Capture

I'm using Electron 9.0.0 and Node v10.19.0 that's support N_API 3

Dependence is built correctly:

Capture1

When you remove the pragma config works fine

  // This is the default, but it is good to specify explicitly:
    db.run('PRAGMA cipher_compatibility = 4')
    console.log('Pragma cipher compatibility defined')

    // To open a database created with SQLCipher 3.x, use this:
    // db.run("PRAGMA cipher_compatibility = 3");

    db.run("PRAGMA key = 'mysecret'")

This means that it does not seem to compile well for windows because the database cannot be encrypted.

On mac works fine, any idea?

Thanks!

@rkistner
Copy link
Member

Working on a fix for Windows. This is the same issue as in #67, so moving the discussion there.

Note that the issue title (node-pre-gyp info This Node instance does not support builds for N-API version 6) is unrelated to the actual crash - that's just an informational message.

@ajmasia
Copy link
Author

ajmasia commented Feb 19, 2021

Thanks, @rkistner for star working on this fix, and sorry for my title mistake 😄

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

No branches or pull requests

2 participants