I am trying to use sqlite3 with Electron on Windows but I keep getting an issue when node-gyp appears to be trying to download the correct binding from this URL,
It appears the binding is decalred from here. When I go to this URL in the browser I get this error,
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<Error>
<script/>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>E4FE959AF0BC9163</RequestId>
<HostId>
N+nkLjthr5dgKL5ZcGFzaxIQIe7gXIHEYpJOaeV5JzjMOo1CVKXmXnMmD7fBrANdmcYZv/j9VIM=
</HostId>
</Error>
When running the script locally this is the output.
Error output:
node-pre-gyp WARN Using request for node-pre-gyp https download
node-pre-gyp WARN Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.0.8/electron-v4.2-win32-x64.tar.gz
When I check the node_modules/sqlite3 path i can see the folder is there but there is nothing inside the folder.
I am assuming all I am lacking at this point is to get this binding added to my project correctly but I have not been able to find it nor get my npm to download it correctly.
Is the URL to the binding incorrect? If so what is the correct URL that node-gyp should be using? Can I simply download the binding and add it to my project?
Update
I have tested building the sqlite3 module with Electron bindings on,
Vanilla Electron boilerplate using electron-rebuild
Using electron-builder
Using electron-forge
All of these fail with the same issue, the binary does not exist. For some reason it seems that when node-pre-gyp tries to download the electron-node binding, it fails.
If someone can provide some insight to what the correct binding is and the path to it I would be happy to try and help fix this.
I am trying to use sqlite3 with Electron on Windows but I keep getting an issue when node-gyp appears to be trying to download the correct binding from this URL,
It appears the binding is decalred from here. When I go to this URL in the browser I get this error,
When I check the node_modules/sqlite3 path i can see the folder is there but there is nothing inside the folder.
I am assuming all I am lacking at this point is to get this binding added to my project correctly but I have not been able to find it nor get my npm to download it correctly.
Is the URL to the binding incorrect? If so what is the correct URL that node-gyp should be using? Can I simply download the binding and add it to my project?
Update
I have tested building the sqlite3 module with Electron bindings on,
Vanilla Electron boilerplate using electron-rebuild
Using electron-builder
Using electron-forge
All of these fail with the same issue, the binary does not exist. For some reason it seems that when
node-pre-gyptries to download the electron-node binding, it fails.If someone can provide some insight to what the correct binding is and the path to it I would be happy to try and help fix this.