WiseLibs / better-sqlite3

The fastest and simplest library for SQLite3 in Node.js.
MIT License
5.39k stars 394 forks source link

Help me use Electron! #126

Open JoshuaWise opened 6 years ago

JoshuaWise commented 6 years ago

Electron Help Thread

This thread is for anyone who needs help using Electron with better-sqlite3.

better-sqlite3 is a Node.js package, not an Electron package. If third parties like Electron decide to do fancy things that happen to break a perfectly functioning Node.js package, it is not an issue with that package. Any issues related to Electron should be reported here. If you're lucky, friendly members of the community may chime in here to help you.

JoshuaWise commented 6 years ago

As a potentially helpful start to this thread, I'd like to contribute that many people have had their issues resolved by using @electron/rebuild.

(Edit by @mceachen: electron-rebuild was renamed to @electron/rebuild)

jlongster commented 6 years ago

I'm using both Electron and Windows so I'm happy to chime in here. I'm still using a custom fork but I think you resolved my PRs a while ago so I need to try master again. I'll let you know what we should document about Electron (at the very least, just like any native module, you do need to rebuild it for electron and electron-rebuild works great)

JoshuaWise commented 6 years ago

@jlongster That's great, the help is much appreciated

mandaputtra commented 6 years ago

I,m still had this error even with electron rebuild

here my package.json

{
  "name": "sqlite-electron",
  "version": "1.0.0",
  "main": "index.js",
  "scripts": {
    "start": "electron .",
    "rebuild": "electron-rebuild -f -w better-sqlite3",
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "description": "",
  "dependencies": {
    "better-sqlite3": "^4.1.4",
    "electron": "^2.0.2"
  },
  "devDependencies": {
    "electron-rebuild": "^1.7.3"
  }
}

OS: Linux Ubuntu Based node 8.11.1 using nvm

Custardcs commented 6 years ago

I can help all our projects are using electron and better-sqlite3

this is our read me

///////////////////////////////////////////// SETUP AND INSTALL MODULES ///////////////////////////////////////////// better-sqlite3 instructios

npm install -g windows-build-tools(might need to install python and add the dir to the env file in windows)

if that doesnt work install

python 2.7 (not 3)

then below to add to path. https://www.pythoncentral.io/add-python-to-path-python-is-not-recognized-as-an-internal-or-external-command/

(windows 7 install .net 4.5.1)

go (C:\Users\%USERNAME%.windows-build-tools) run

BuildTools_Full.exe

open BuildTools and click modify

Check VC++ 2015.3 v14.00(v140) toolset for desktop

npm install --save better-sqlite3

npm install --save-dev electron-rebuild

go to terminal in the vs and run

node_modules/.bin/electron-rebuild -f -w better-sqlite3

if you have more than one module that needs building like (bcypt) its best to use

node_modules/.bin/electron-rebuild.

tracker1 commented 6 years ago

It may be best to use nvm and set the same node version to match the version in electron... depending on what/how you are running functional/integration testing, you may still need the version against your framework outside electron.

LucaPizzagalli commented 5 years ago

Hello, I want to display some data using a renderer process and accessing a database; the database is open in the main process. I'm trying to pass the database variable from the main to the renderer using ipcRenderer but when I try to call db.prepare() in the renderer i get the error: "db.prepare is not a function"

Searching throw stackoverflow it seems that the reason is that Electron's IPC only sends serializable object and Database is not (I'm not really sure about this).

How can I pass the database from the main to the renderer?

SwiTool commented 5 years ago

Where it doesn't work for you even with the windows-build-tools, here is the fix :

And there you go, you can run your app.

JoshuaWise commented 5 years ago

@LucaPizzagalli You can't send database objects across IPC channels, but you can send a filename (string), which you can then use to open the same database within your renderer process.

chaselal commented 5 years ago

@JoshuaWise

You can't send database objects across IPC channels, but you can send a filename (string), which you can then use to open the same database within your renderer process.

Would you clarify -- is it true that better-sqlite3 operations called in renderer processes must make remote calls to the main process, and so the main process actually does all database access? Or can renderer processes use better-sqlite3 completely in-process?

barbalex commented 5 years ago

In my case node_modules/.bin/electron-rebuild -f -w better-sqlite3 results in this error: https://gist.github.com/barbalex/a40e40900279c0021541e8229d2a25fb

which seems to basically be:

In file included from ../src/addon.cpp:2:
../src/addon.h:21:15: warning: 'MakeCallback' is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
        node::MakeCallback(isolate, isolate->GetCurrentContext()->Global(), Local<Function>::New(isolate, noop), 0, nullptr);

I have the feeling that node versions are involved, but absolutely no idea how to solve this.

It may be related to the fact that when I run yarn dev, electron starts up but this error appears in the dev tools:

/Users/alexandergabriel/awel-personal/app/node_modules/bindings/bindings.js:88 Uncaught Error: The module '/Users/alexandergabriel/awel-personal/app/node_modules/better-sqlite3/build/Release/better_sqlite3.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 64. This version of Node.js requires
NODE_MODULE_VERSION 69. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
    at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:160:31)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:722)
    at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:160:31)
    at Module.load (internal/modules/cjs/loader.js:602)
    at tryModuleLoad (internal/modules/cjs/loader.js:541)
    at Function.Module._load (internal/modules/cjs/loader.js:533)
    at Module.require (internal/modules/cjs/loader.js:640)
    at require (internal/modules/cjs/helpers.js:20)
    at bindings (/Users/alexandergabriel/awel-personal/app/node_modules/bindings/bindings.js:81)
    at Object.<anonymous> (/Users/alexandergabriel/awel-personal/app/node_modules/better-sqlite3/lib/database.js:4)

Which is why I tried to run electron-rebuild in the first place.

But no number of rm yarn.lock && rm -rf node_modules && yarn cache clean && yarn has helped.

Custardcs commented 5 years ago

I had this problem once I built it with the wrong version. Delete your entire Node folder download electron first then better sqlite 3 then try and build. or it could be electron then electron rebuild then sqlite.

Custardcs commented 5 years ago

Hello, I want to display some data using a renderer process and accessing a database; the database is open in the main process. I'm trying to pass the database variable from the main to the renderer using ipcRenderer but when I try to call db.prepare() in the renderer i get the error: "db.prepare is not a function"

Searching throw stackoverflow it seems that the reason is that Electron's IPC only sends serializable object and Database is not (I'm not really sure about this).

How can I pass the database from the main to the renderer?

so what we have done is we set up a worker file.. and the worker file will talk to the DB.. you should never run anything on the main thread.. as it causes a lock up on the clients PC. It took us a while to get this working properly XD. we use our main thread for only page changes and connections to the server. Everything else is run through our worker.

Escyth commented 5 years ago

I used the exact same command as barbalex and I received this error: https://gist.github.com/x-Aizawa/cff50adb7f9d4358e35b074a7b89dd42

It seems like the error is different than his/her so I haven't tried the solution provided by Custardcs.

Any help would be appreciated.

SwiTool commented 5 years ago

I used the exact same command as barbalex and I received this error: https://gist.github.com/x-Aizawa/cff50adb7f9d4358e35b074a7b89dd42

It seems like the error is different than his/her so I haven't tried the solution provided by Custardcs.

Any help would be appreciated.

You need to install electron version 4.0.3, because since 4.0.4, no node version is high enough to fulfill the 69 version requirement. as seen here : https://nodejs.org/en/download/releases, the last NODE_MODULE_VERSION is currently 67 for the last version (11.10.0). If you want to use electron 4.0.3, you'll need to install node v10.15.1

Custardcs commented 5 years ago

I used the exact same command as barbalex and I received this error: https://gist.github.com/x-Aizawa/cff50adb7f9d4358e35b074a7b89dd42 It seems like the error is different than his/her so I haven't tried the solution provided by Custardcs. Any help would be appreciated.

You need to install electron version 4.0.3, because since 4.0.4, no node version is high enough to fulfill the 69 version requirement. as seen here : https://nodejs.org/en/download/releases, the last NODE_MODULE_VERSION is currently 67 for the last version (11.10.0). If you want to use electron 4.0.3, you'll need to install node v10.15.1

Im using version 4.0.4 without any issues

Custardcs commented 5 years ago

I used the exact same command as barbalex and I received this error: https://gist.github.com/x-Aizawa/cff50adb7f9d4358e35b074a7b89dd42

It seems like the error is different than his/her so I haven't tried the solution provided by Custardcs.

Any help would be appreciated.

can you give me a step by step example of what you have done.. from fresh project to here? so maybe i can help better

Escyth commented 5 years ago

I used the exact same command as barbalex and I received this error: https://gist.github.com/x-Aizawa/cff50adb7f9d4358e35b074a7b89dd42 It seems like the error is different than his/her so I haven't tried the solution provided by Custardcs. Any help would be appreciated.

can you give me a step by step example of what you have done.. from fresh project to here? so maybe i can help better

I made an application and finished everything, decided to add SQLite to my application and those errors appear when installing/running app/using electron-rebuild.

I'll try to downgrade the version for Electron.

Custardcs commented 5 years ago

I used the exact same command as barbalex and I received this error: https://gist.github.com/x-Aizawa/cff50adb7f9d4358e35b074a7b89dd42 It seems like the error is different than his/her so I haven't tried the solution provided by Custardcs. Any help would be appreciated.

can you give me a step by step example of what you have done.. from fresh project to here? so maybe i can help better

I made an application and finished everything, decided to add SQLite to my application and those errors appear when installing/running app/using electron-rebuild.

I'll try to downgrade the version for Electron.

Show me your package.json,

Custardcs commented 5 years ago

I see it says 'invalid file or disk full' you have enough space on your disk right?

Escyth commented 5 years ago
{
  "name": "bank-account",
  "version": "1.0.0",
  "main": "main.js",
  "scripts": {
    "start": "electron ."
  },
  "author": "uBakkar",
  "devDependencies": {
    "electron": "^4.0.5",
    "electron-rebuild": "^1.8.4"
  },
  "dependencies": {
    "better-sqlite3": "^5.4.0",
    "electron-reload": "^1.4.0",
    "enmap": "^4.8.1",
    "moment": "^2.24.0"
  }
}

Yes, I have 300GB free.

Escyth commented 5 years ago

@SwiTool - @Custardcs | I downgraded to v4.0.3 and this error appeared:

Error: The module '\\?\C:\Private\Bank-Application\node_modules\better-sqlite3\build\better_sqlite3.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 64. This version of Node.js requires
NODE_MODULE_VERSION 69. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
    at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:160:31)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:722:18)
    at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:160:31)
    at Module.load (internal/modules/cjs/loader.js:602:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
    at Function.Module._load (internal/modules/cjs/loader.js:533:3)
    at Module.require (internal/modules/cjs/loader.js:640:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (C:\Private\Bank-Application\node_modules\better-sqlite3\lib\database.js:5:21)
    at Object.<anonymous> (C:\Private\Bank-Application\node_modules\better-sqlite3\lib\database.js:57:3)
Custardcs commented 5 years ago
{
  "name": "bank-account",
  "version": "1.0.0",
  "main": "main.js",
  "scripts": {
    "start": "electron ."
  },
  "author": "uBakkar",
  "devDependencies": {
    "electron": "^4.0.5",
    "electron-rebuild": "^1.8.4"
  },
  "dependencies": {
    "better-sqlite3": "^5.4.0",
    "electron-reload": "^1.4.0",
    "enmap": "^4.8.1",
    "moment": "^2.24.0"
  }
}

Yes, I have 300GB free.

Im assuming you are on windows?

@SwiTool - @Custardcs | I downgraded to v4.0.3 and this error appeared:

Error: The module '\\?\C:\Private\Bank-Application\node_modules\better-sqlite3\build\better_sqlite3.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 64. This version of Node.js requires
NODE_MODULE_VERSION 69. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
    at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:160:31)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:722:18)
    at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:160:31)
    at Module.load (internal/modules/cjs/loader.js:602:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:541:12)
    at Function.Module._load (internal/modules/cjs/loader.js:533:3)
    at Module.require (internal/modules/cjs/loader.js:640:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (C:\Private\Bank-Application\node_modules\better-sqlite3\lib\database.js:5:21)
    at Object.<anonymous> (C:\Private\Bank-Application\node_modules\better-sqlite3\lib\database.js:57:3)

delete all your nodemodules and follow the steps up above look at my post near the top.

Windows PowerShell
Copyright (C) 2015 Microsoft Corporation. All rights reserved.

PS C:\Users\CuntarD\Documents\Test> npm i electron

> electron@4.0.5 postinstall C:\Users\CuntarD\Documents\Test\node_modules\electron
> node install.js

npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN bank-account@1.0.0 No description
npm WARN bank-account@1.0.0 No repository field.
npm WARN bank-account@1.0.0 No license field.

+ electron@4.0.5
added 145 packages from 139 contributors and audited 201 packages in 9.831s
found 0 vulnerabilities

PS C:\Users\CuntarD\Documents\Test>
PS C:\Users\CuntarD\Documents\Test> npm i electron-rebuild
npm WARN bank-account@1.0.0 No description
npm WARN bank-account@1.0.0 No repository field.
npm WARN bank-account@1.0.0 No license field.

+ electron-rebuild@1.8.4
added 109 packages from 60 contributors and audited 496 packages in 7.453s
found 0 vulnerabilities

PS C:\Users\CuntarD\Documents\Test> npm i better-sqlite3

> integer@2.1.0 install C:\Users\CuntarD\Documents\Test\node_modules\integer
> node-gyp rebuild

C:\Users\CuntarD\Documents\Test\node_modules\integer>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  integer.cpp
  win_delay_load_hook.cc
c:\users\cuntard\documents\test\node_modules\integer\src\integer.cpp(370): warning C4804: '-': unsafe use of type 'bool' in operation [C:\Users\CuntarD\Documents\Test\node_modules\integer\build\integer.vcxproj]
     Creating library C:\Users\CuntarD\Documents\Test\node_modules\integer\build\Release\integer.lib and object C:\Users\CuntarD\Documents\Test\node_modules\integer\build\Release\integer.exp
  Generating code
  All 265 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
  Finished generating code
  integer.vcxproj -> C:\Users\CuntarD\Documents\Test\node_modules\integer\build\Release\\integer.node
  Copying C:\Users\CuntarD\Documents\Test\node_modules\integer\build\Release\/integer.node to build\integer.node
          1 file(s) copied.

> better-sqlite3@5.4.0 install C:\Users\CuntarD\Documents\Test\node_modules\better-sqlite3
> node-gyp rebuild

C:\Users\CuntarD\Documents\Test\node_modules\better-sqlite3>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  extract_sqlite3
  sqlite3.c
  win_delay_load_hook.cc
  sqlite3.vcxproj -> C:\Users\CuntarD\Documents\Test\node_modules\better-sqlite3\build\Release\\sqlite3.lib
  better_sqlite3.cpp
  win_delay_load_hook.cc
     Creating library C:\Users\CuntarD\Documents\Test\node_modules\better-sqlite3\build\Release\better_sqlite3.lib and object C:\Users\CuntarD\Documents\Test\node_modules\better-sqlite3\build\Release\better_sqlite3.exp
  Generating code
  All 4285 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
  Finished generating code
  better_sqlite3.vcxproj -> C:\Users\CuntarD\Documents\Test\node_modules\better-sqlite3\build\Release\\better_sqlite3.node
  better_sqlite3.vcxproj -> C:\Users\CuntarD\Documents\Test\node_modules\better-sqlite3\build\Release\better_sqlite3.pdb (Full PDB)
  test_extension.c
  win_delay_load_hook.cc
  Generating code
  All 2 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
  Finished generating code
  test_extension.vcxproj -> C:\Users\CuntarD\Documents\Test\node_modules\better-sqlite3\build\Release\\test_extension.node
  test_extension.vcxproj -> C:\Users\CuntarD\Documents\Test\node_modules\better-sqlite3\build\Release\test_extension.pdb (Full PDB)
  Copying C:\Users\CuntarD\Documents\Test\node_modules\better-sqlite3\build\Release\/better_sqlite3.node to build\better_sqlite3.node
          1 file(s) copied.
  Copying C:\Users\CuntarD\Documents\Test\node_modules\better-sqlite3\build\Release\/test_extension.node to build\test_extension.node
          1 file(s) copied.
npm WARN bank-account@1.0.0 No description
npm WARN bank-account@1.0.0 No repository field.
npm WARN bank-account@1.0.0 No license field.

+ better-sqlite3@5.4.0
added 8 packages from 2 contributors and audited 515 packages in 33.737s
found 0 vulnerabilities

PS C:\Users\CuntarD\Documents\Test> npm i electron-reload
npm WARN bank-account@1.0.0 No description
npm WARN bank-account@1.0.0 No repository field.
npm WARN bank-account@1.0.0 No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

+ electron-reload@1.4.0
added 131 packages from 105 contributors and audited 2630 packages in 18.649s
found 0 vulnerabilities

PS C:\Users\CuntarD\Documents\Test> npm i enmap
npm WARN enmap@4.8.1 requires a peer of better-sqlite-pool@github:eslachance/better-sqlite-pool but none is installed. You must install peer dependencies yourself.
npm WARN bank-account@1.0.0 No description
npm WARN bank-account@1.0.0 No repository field.
npm WARN bank-account@1.0.0 No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

+ enmap@4.8.1
added 2 packages from 3 contributors and audited 2632 packages in 8.086s
found 0 vulnerabilities

PS C:\Users\CuntarD\Documents\Test> npm i moment
npm WARN enmap@4.8.1 requires a peer of better-sqlite-pool@github:eslachance/better-sqlite-pool but none is installed. You must install peer dependencies yourself.
npm WARN bank-account@1.0.0 No description
npm WARN bank-account@1.0.0 No repository field.
npm WARN bank-account@1.0.0 No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

+ moment@2.24.0
added 1 package from 6 contributors and audited 2633 packages in 4.569s
found 0 vulnerabilities

PS C:\Users\CuntarD\Documents\Test>

everything complied fine.

Escyth commented 5 years ago

It's compiling and everything, but when I try to run the application I receive an error.

Escyth commented 5 years ago

@Custardcs | Yes, I use Windows.

Escyth commented 5 years ago

Another thing is that I'm not using better-sqlite3 directly, but better-sqlite-pool which is based off better-sqlite3 and the error says better-sqlite3.

Custardcs commented 5 years ago

Another thing is that I'm not using better-sqlite3 directly, but better-sqlite-pool which is based off better-sqlite3 and the error says better-sqlite3.

then im not sure bud i have not used 'better-sqlite-pool' last thing i can suggest is giving me a copy of you project and ill try run it on my side.

Escyth commented 5 years ago

Sure, I'll make a GitHub private repository and add you as a collaborator or whatever it's called.

Escyth commented 5 years ago

Another thing is that I'm not using better-sqlite3 directly, but better-sqlite-pool which is based off better-sqlite3 and the error says better-sqlite3.

then im not sure bud i have not used 'better-sqlite-pool' last thing i can suggest is giving me a copy of you project and ill try run it on my side.

You have been sent an invitation to a private repository with the name "Electron-Application".

Escyth commented 5 years ago

@Custardcs | Hey?

Custardcs commented 5 years ago

@Custardcs | Hey?

Hey bro. Been a busy day. Ill test it out now

Escyth commented 5 years ago

@Custardcs | Hey?

Hey bro. Been a busy day. Ill test it out now

Great, please reply to me when you're done testing :P

Custardcs commented 5 years ago

I dont have access to the repository

Escyth commented 5 years ago

Hmm, I sent an invitation to you. I believe it should be accessible through your email.

Custardcs commented 5 years ago

so its working

image

here is the full log in the order I did everything.,

Windows PowerShell
Copyright (C) 2015 Microsoft Corporation. All rights reserved.

PS C:\Users\CuntarD\Desktop\Electron-Application-master> npm i electron

> electron@4.0.5 postinstall C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\electron
> node install.js

npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN bank-account@1.0.0 No repository field.
npm WARN bank-account@1.0.0 No license field.

+ electron@4.0.5
added 145 packages from 139 contributors and audited 201 packages in 14.411s
found 0 vulnerabilities

PS C:\Users\CuntarD\Desktop\Electron-Application-master> npm i better-sqlite-pool

> integer@2.1.0 install C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\integer
> node-gyp rebuild

C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\integer>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )
else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  integer.cpp
  win_delay_load_hook.cc
c:\users\cuntard\desktop\electron-application-master\node_modules\integer\src\integer.cpp(370): warning C4804: '-': unsafe use of type 'bool' in operation [C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\integer\build\integer.vcxproj]
     Creating library C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\integer\build\Release\integer.lib and object C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\integer\build\Release\integer.exp
  Generating code
  All 265 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
  Finished generating code
  integer.vcxproj -> C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\integer\build\Release\\integer.node
  Copying C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\integer\build\Release\/integer.node to build\integer.node
          1 file(s) copied.

> better-sqlite3@5.4.0 install C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\better-sqlite3
> node-gyp rebuild

C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\better-sqlite3>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  extract_sqlite3
  sqlite3.c
  win_delay_load_hook.cc
  sqlite3.vcxproj -> C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\better-sqlite3\build\Release\\sqlite3.lib
  better_sqlite3.cpp
  win_delay_load_hook.cc
     Creating library C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\better-sqlite3\build\Release\better_sqlite3.lib and object C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\better-sqlite3\build\Release\better_sqli
  te3.exp
  Generating code
  All 4285 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
  Finished generating code
  better_sqlite3.vcxproj -> C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\better-sqlite3\build\Release\\better_sqlite3.node
  better_sqlite3.vcxproj -> C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\better-sqlite3\build\Release\better_sqlite3.pdb (Full PDB)
  test_extension.c
  win_delay_load_hook.cc
  Generating code
  All 2 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
  Finished generating code
  test_extension.vcxproj -> C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\better-sqlite3\build\Release\\test_extension.node
  test_extension.vcxproj -> C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\better-sqlite3\build\Release\test_extension.pdb (Full PDB)
  Copying C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\better-sqlite3\build\Release\/better_sqlite3.node to build\better_sqlite3.node
          1 file(s) copied.
  Copying C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\better-sqlite3\build\Release\/test_extension.node to build\test_extension.node
          1 file(s) copied.
npm WARN bank-account@1.0.0 No repository field.
npm WARN bank-account@1.0.0 No license field.

+ better-sqlite-pool@0.2.0
added 11 packages from 8 contributors and audited 223 packages in 39.568s
found 0 vulnerabilities

PS C:\Users\CuntarD\Desktop\Electron-Application-master> npm i electron-reload
npm WARN bank-account@1.0.0 No repository field.
npm WARN bank-account@1.0.0 No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

+ electron-reload@1.4.0
added 132 packages from 105 contributors and audited 2338 packages in 10.515s
found 0 vulnerabilities

PS C:\Users\CuntarD\Desktop\Electron-Application-master> npm i enmap
npm WARN enmap@4.8.1 requires a peer of better-sqlite-pool@github:eslachance/better-sqlite-pool but none is installed. You must install peer dependencies yourself.
npm WARN bank-account@1.0.0 No repository field.
npm WARN bank-account@1.0.0 No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

+ enmap@4.8.1
added 2 packages from 3 contributors and audited 2340 packages in 6.579s
found 0 vulnerabilities

PS C:\Users\CuntarD\Desktop\Electron-Application-master> npm i moment
npm WARN enmap@4.8.1 requires a peer of better-sqlite-pool@github:eslachance/better-sqlite-pool but none is installed. You must install peer dependencies yourself.
npm WARN bank-account@1.0.0 No repository field.
npm WARN bank-account@1.0.0 No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

+ moment@2.24.0
added 1 package from 6 contributors and audited 2341 packages in 5.176s
found 0 vulnerabilities

PS C:\Users\CuntarD\Desktop\Electron-Application-master> npm rebuild

> better-sqlite3@5.4.0 install C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\better-sqlite3
> node-gyp rebuild

C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\better-sqlite3>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )  else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  extract_sqlite3
  sqlite3.c
  win_delay_load_hook.cc
  sqlite3.vcxproj -> C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\better-sqlite3\build\Release\\sqlite3.lib
  better_sqlite3.cpp
  win_delay_load_hook.cc
     Creating library C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\better-sqlite3\build\Release\better_sqlite3.lib and object C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\better-sqlite3\build\Release\better_sqli
  te3.exp
  Generating code
  All 4285 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
  Finished generating code
  better_sqlite3.vcxproj -> C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\better-sqlite3\build\Release\\better_sqlite3.node
  better_sqlite3.vcxproj -> C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\better-sqlite3\build\Release\better_sqlite3.pdb (Full PDB)
  test_extension.c
  win_delay_load_hook.cc
  Generating code
  All 2 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
  Finished generating code
  test_extension.vcxproj -> C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\better-sqlite3\build\Release\\test_extension.node
  test_extension.vcxproj -> C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\better-sqlite3\build\Release\test_extension.pdb (Full PDB)
  Copying C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\better-sqlite3\build\Release\/better_sqlite3.node to build\better_sqlite3.node
          1 file(s) copied.
  Copying C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\better-sqlite3\build\Release\/test_extension.node to build\test_extension.node
          1 file(s) copied.

> integer@2.1.0 install C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\integer
> node-gyp rebuild

C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\integer>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )
else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  integer.cpp
  win_delay_load_hook.cc
c:\users\cuntard\desktop\electron-application-master\node_modules\integer\src\integer.cpp(370): warning C4804: '-': unsafe use of type 'bool' in operation [C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\integer\build\integer.vcxproj]
     Creating library C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\integer\build\Release\integer.lib and object C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\integer\build\Release\integer.exp
  Generating code
  All 265 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
  Finished generating code
  integer.vcxproj -> C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\integer\build\Release\\integer.node
  Copying C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\integer\build\Release\/integer.node to build\integer.node
          1 file(s) copied.

> electron@4.0.5 postinstall C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\electron
> node install.js

better-sqlite-pool@0.2.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\better-sqlite-pool
@types/better-sqlite3@5.2.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\@types\better-sqlite3
@types/integer@1.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\@types\integer
better-sqlite3@5.4.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\better-sqlite3
integer@2.1.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\integer
tar@4.4.8 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\tar
chownr@1.1.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\chownr
fs-minipass@1.2.5 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\fs-minipass
minipass@2.3.5 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\minipass
safe-buffer@5.1.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\safe-buffer
yallist@3.0.3 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\yallist
minizlib@1.2.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\minizlib
mkdirp@0.5.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\mkdirp
minimist@0.0.8 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\mkdirp\node_modules\minimist
electron-reload@1.4.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\electron-reload
chokidar@2.1.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\chokidar
anymatch@2.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\anymatch
micromatch@3.1.10 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\micromatch
arr-diff@4.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\arr-diff
array-unique@0.3.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\array-unique
braces@2.3.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\braces
arr-flatten@1.1.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\arr-flatten
extend-shallow@2.0.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\braces\node_modules\extend-shallow
is-extendable@0.1.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\is-extendable
fill-range@4.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\fill-range
extend-shallow@2.0.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\fill-range\node_modules\extend-shallow
is-number@3.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\is-number
kind-of@3.2.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\is-number\node_modules\kind-of
is-buffer@1.1.6 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\is-buffer
repeat-string@1.6.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\repeat-string
to-regex-range@2.1.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\to-regex-range
isobject@3.0.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\isobject
repeat-element@1.1.3 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\repeat-element
snapdragon@0.8.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\snapdragon
base@0.11.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\base
cache-base@1.0.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\cache-base
collection-visit@1.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\collection-visit
map-visit@1.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\map-visit
object-visit@1.0.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\object-visit
component-emitter@1.2.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\component-emitter
get-value@2.0.6 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\get-value
has-value@1.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\has-value
has-values@1.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\has-values
kind-of@4.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\has-values\node_modules\kind-of
set-value@2.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\set-value
extend-shallow@2.0.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\set-value\node_modules\extend-shallow
is-plain-object@2.0.4 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\is-plain-object
split-string@3.1.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\split-string
extend-shallow@3.0.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\extend-shallow
assign-symbols@1.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\assign-symbols
is-extendable@1.0.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\extend-shallow\node_modules\is-extendable
to-object-path@0.3.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\to-object-path
kind-of@3.2.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\to-object-path\node_modules\kind-of
union-value@1.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\union-value
arr-union@3.1.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\arr-union
set-value@0.4.3 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\union-value\node_modules\set-value
extend-shallow@2.0.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\union-value\node_modules\extend-shallow
unset-value@1.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\unset-value
has-value@0.3.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\unset-value\node_modules\has-value
has-values@0.1.4 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\unset-value\node_modules\has-values
isobject@2.1.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\unset-value\node_modules\has-value\node_modules\isobject
isarray@1.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\unset-value\node_modules\isarray
class-utils@0.3.6 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\class-utils
define-property@0.2.5 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\class-utils\node_modules\define-property
is-descriptor@0.1.6 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\is-descriptor
is-accessor-descriptor@0.1.6 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\is-accessor-descriptor
kind-of@3.2.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\is-accessor-descriptor\node_modules\kind-of
is-data-descriptor@0.1.4 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\is-data-descriptor
kind-of@3.2.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\is-data-descriptor\node_modules\kind-of
kind-of@5.1.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\is-descriptor\node_modules\kind-of
static-extend@0.1.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\static-extend
define-property@0.2.5 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\static-extend\node_modules\define-property
object-copy@0.1.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\object-copy
copy-descriptor@0.1.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\copy-descriptor
define-property@0.2.5 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\object-copy\node_modules\define-property
kind-of@3.2.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\object-copy\node_modules\kind-of
define-property@1.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\base\node_modules\define-property
is-descriptor@1.0.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\base\node_modules\is-descriptor
is-accessor-descriptor@1.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\base\node_modules\is-accessor-descriptor
kind-of@6.0.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\kind-of
is-data-descriptor@1.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\base\node_modules\is-data-descriptor
mixin-deep@1.3.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\mixin-deep
for-in@1.0.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\for-in
is-extendable@1.0.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\mixin-deep\node_modules\is-extendable
pascalcase@0.1.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\pascalcase
debug@2.6.9 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\snapdragon\node_modules\debug
ms@2.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\snapdragon\node_modules\ms
define-property@0.2.5 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\snapdragon\node_modules\define-property
extend-shallow@2.0.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\snapdragon\node_modules\extend-shallow
map-cache@0.2.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\map-cache
source-map@0.5.7 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\source-map
source-map-resolve@0.5.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\source-map-resolve
atob@2.1.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\atob
decode-uri-component@0.2.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\decode-uri-component
resolve-url@0.2.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\resolve-url
source-map-url@0.4.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\source-map-url
urix@0.1.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\urix
use@3.1.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\use
snapdragon-node@2.1.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\snapdragon-node
define-property@1.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\snapdragon-node\node_modules\define-property
is-descriptor@1.0.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\snapdragon-node\node_modules\is-descriptor
is-accessor-descriptor@1.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\snapdragon-node\node_modules\is-accessor-descriptor
is-data-descriptor@1.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\snapdragon-node\node_modules\is-data-descriptor
snapdragon-util@3.0.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\snapdragon-util
kind-of@3.2.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\snapdragon-util\node_modules\kind-of
to-regex@3.0.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\to-regex
define-property@2.0.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\define-property
is-descriptor@1.0.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\define-property\node_modules\is-descriptor
is-accessor-descriptor@1.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\define-property\node_modules\is-accessor-descriptor
is-data-descriptor@1.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\define-property\node_modules\is-data-descriptor
regex-not@1.0.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\regex-not
safe-regex@1.1.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\safe-regex
ret@0.1.15 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\ret
extglob@2.0.4 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\extglob
define-property@1.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\extglob\node_modules\define-property
is-descriptor@1.0.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\extglob\node_modules\is-descriptor
is-accessor-descriptor@1.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\extglob\node_modules\is-accessor-descriptor
is-data-descriptor@1.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\extglob\node_modules\is-data-descriptor
expand-brackets@2.1.4 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\expand-brackets
debug@2.6.9 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\expand-brackets\node_modules\debug
ms@2.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\expand-brackets\node_modules\ms
define-property@0.2.5 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\expand-brackets\node_modules\define-property
extend-shallow@2.0.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\expand-brackets\node_modules\extend-shallow
posix-character-classes@0.1.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\posix-character-classes
extend-shallow@2.0.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\extglob\node_modules\extend-shallow
fragment-cache@0.2.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\fragment-cache
nanomatch@1.2.13 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\nanomatch
is-windows@1.0.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\is-windows
object.pick@1.3.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\object.pick
normalize-path@2.1.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\anymatch\node_modules\normalize-path
remove-trailing-separator@1.1.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\remove-trailing-separator
async-each@1.0.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\async-each
glob-parent@3.1.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\glob-parent
is-glob@3.1.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\glob-parent\node_modules\is-glob
is-extglob@2.1.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\is-extglob
path-dirname@1.0.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\path-dirname
inherits@2.0.3 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\inherits
is-binary-path@1.0.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\is-binary-path
binary-extensions@1.13.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\binary-extensions
is-glob@4.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\is-glob
normalize-path@3.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\normalize-path
path-is-absolute@1.0.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\path-is-absolute
readdirp@2.2.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\readdirp
graceful-fs@4.1.15 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\graceful-fs
readable-stream@2.3.6 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\readdirp\node_modules\readable-stream
core-util-is@1.0.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\core-util-is
isarray@1.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\readdirp\node_modules\isarray
process-nextick-args@2.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\process-nextick-args
string_decoder@1.1.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\readdirp\node_modules\string_decoder
util-deprecate@1.0.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\util-deprecate
upath@1.1.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\upath
enmap@4.8.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\enmap
lodash@4.17.11 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\lodash
moment@2.24.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\moment
@types/node@10.12.27 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\@types\node
ansi-regex@2.1.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\ansi-regex
array-find-index@1.0.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\array-find-index
asn1@0.2.4 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\asn1
safer-buffer@2.1.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\safer-buffer
assert-plus@1.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\assert-plus
asynckit@0.4.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\asynckit
aws-sign2@0.7.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\aws-sign2
bcrypt-pbkdf@1.0.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\bcrypt-pbkdf
tweetnacl@0.14.5 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\tweetnacl
buffer-from@1.1.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\buffer-from
camelcase@2.1.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\camelcase
camelcase-keys@2.1.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\camelcase-keys
map-obj@1.0.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\map-obj
caseless@0.12.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\caseless
code-point-at@1.1.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\code-point-at
combined-stream@1.0.7 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\combined-stream
delayed-stream@1.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\delayed-stream
currently-unhandled@0.4.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\currently-unhandled
decamelize@1.2.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\decamelize
deep-extend@0.6.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\deep-extend
ecc-jsbn@0.1.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\ecc-jsbn
jsbn@0.1.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\jsbn
env-paths@1.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\env-paths
error-ex@1.3.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\error-ex
is-arrayish@0.2.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\is-arrayish
extend@3.0.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\extend
extsprintf@1.3.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\extsprintf
fast-deep-equal@2.0.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\fast-deep-equal
fast-json-stable-stringify@2.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\fast-json-stable-stringify
forever-agent@0.6.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\forever-agent
form-data@2.3.3 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\form-data
mime-types@2.1.22 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\mime-types
mime-db@1.38.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\mime-db
get-stdin@4.0.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\get-stdin
getpass@0.1.7 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\getpass
har-schema@2.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\har-schema
har-validator@5.1.3 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\har-validator
ajv@6.9.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\ajv
json-schema-traverse@0.4.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\json-schema-traverse
uri-js@4.2.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\uri-js
punycode@2.1.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\punycode
hosted-git-info@2.7.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\hosted-git-info
http-signature@1.2.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\http-signature
jsprim@1.4.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\jsprim
json-schema@0.2.3 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\json-schema
verror@1.10.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\verror
sshpk@1.16.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\sshpk
dashdash@1.14.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\dashdash
indent-string@2.1.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\indent-string
repeating@2.0.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\repeating
is-finite@1.0.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\is-finite
number-is-nan@1.0.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\number-is-nan
ini@1.3.5 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\ini
is-fullwidth-code-point@1.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\is-fullwidth-code-point
is-typedarray@1.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\is-typedarray
fd-slicer@1.0.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\fd-slicer
pend@1.2.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\pend
is-utf8@0.2.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\is-utf8
isarray@0.0.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\isarray
isstream@0.1.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\isstream
json-stringify-safe@5.0.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\json-stringify-safe
jsonfile@4.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\jsonfile
load-json-file@1.1.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\load-json-file
parse-json@2.2.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\parse-json
pify@2.3.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\pify
pinkie-promise@2.0.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\pinkie-promise
pinkie@2.0.4 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\pinkie
strip-bom@2.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\strip-bom
loud-rejection@1.6.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\loud-rejection
signal-exit@3.0.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\signal-exit
meow@3.7.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\meow
minimist@1.2.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\minimist
normalize-package-data@2.5.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\normalize-package-data
resolve@1.10.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\resolve
path-parse@1.0.6 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\path-parse
semver@5.6.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\semver
validate-npm-package-license@3.0.4 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\validate-npm-package-license
spdx-correct@3.1.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\spdx-correct
spdx-expression-parse@3.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\spdx-expression-parse
spdx-exceptions@2.2.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\spdx-exceptions
spdx-license-ids@3.0.3 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\spdx-license-ids
object-assign@4.1.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\object-assign
read-pkg-up@1.0.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\read-pkg-up
find-up@1.1.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\find-up
path-exists@2.1.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\find-up\node_modules\path-exists
read-pkg@1.1.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\read-pkg
path-type@1.1.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\path-type
redent@1.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\redent
strip-indent@1.0.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\strip-indent
trim-newlines@1.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\trim-newlines
ms@2.1.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\ms
oauth-sign@0.9.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\oauth-sign
object-keys@0.4.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\object-keys
path-exists@3.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\path-exists
performance-now@2.1.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\performance-now
progress-stream@1.2.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\progress-stream
speedometer@0.1.4 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\speedometer
through2@0.2.3 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\through2
readable-stream@1.1.14 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\readable-stream
string_decoder@0.10.31 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\string_decoder
xtend@2.1.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\xtend
psl@1.1.31 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\psl
single-line-log@1.1.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\single-line-log
string-width@1.0.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\string-width
strip-ansi@3.0.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\strip-ansi
strip-json-comments@2.0.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\strip-json-comments
throttleit@0.0.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\throttleit
tunnel-agent@0.6.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\tunnel-agent
typedarray@0.0.6 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\typedarray
universalify@0.1.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\universalify
electron@4.0.5 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\electron
electron-download@4.1.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\electron-download
debug@3.2.6 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\debug
fs-extra@4.0.3 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\fs-extra
nugget@2.0.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\nugget
debug@2.6.9 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\nugget\node_modules\debug
ms@2.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\nugget\node_modules\ms
pretty-bytes@1.0.4 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\pretty-bytes
request@2.88.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\request
aws4@1.8.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\aws4
qs@6.5.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\qs
tough-cookie@2.4.3 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\tough-cookie
punycode@1.4.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\tough-cookie\node_modules\punycode
uuid@3.3.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\uuid
rc@1.2.8 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\rc
sumchecker@2.0.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\sumchecker
debug@2.6.9 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\sumchecker\node_modules\debug
ms@2.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\sumchecker\node_modules\ms
extract-zip@1.6.7 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\extract-zip
concat-stream@1.6.2 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\concat-stream
readable-stream@2.3.6 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\concat-stream\node_modules\readable-stream
isarray@1.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\concat-stream\node_modules\isarray
string_decoder@1.1.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\concat-stream\node_modules\string_decoder
debug@2.6.9 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\extract-zip\node_modules\debug
ms@2.0.0 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\extract-zip\node_modules\ms
yauzl@2.4.1 C:\Users\CuntarD\Desktop\Electron-Application-master\node_modules\yauzl
PS C:\Users\CuntarD\Desktop\Electron-Application-master> ./node_modules/.bin/electron-rebuild
./node_modules/.bin/electron-rebuild : The term './node_modules/.bin/electron-rebuild' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the 
path is correct and try again.
At line:1 char:1
+ ./node_modules/.bin/electron-rebuild
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (./node_modules/.bin/electron-rebuild:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

PS C:\Users\CuntarD\Desktop\Electron-Application-master> npm i electron-rebuild
npm WARN enmap@4.8.1 requires a peer of better-sqlite-pool@github:eslachance/better-sqlite-pool but none is installed. You must install peer dependencies yourself.
npm WARN bank-account@1.0.0 No repository field.
npm WARN bank-account@1.0.0 No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

+ electron-rebuild@1.8.4
added 108 packages from 60 contributors and audited 2636 packages in 13.138s
found 0 vulnerabilities

PS C:\Users\CuntarD\Desktop\Electron-Application-master> ./node_modules/.bin/electron-rebuild
√ Rebuild Complete
PS C:\Users\CuntarD\Desktop\Electron-Application-master>

so delete your lock-file. run from the top installing everything in that order down to what i did last

Custardcs commented 5 years ago

Here is the launch file if you need aswell. it should go under

.vscode/launch.json

{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "type": "node", "request": "launch", "name": "Electron Main", "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/electron", "program": "${workspaceFolder}/main.js" } ] }

Escyth commented 5 years ago

The rebuild at the end (electron-rebuild) fails. @Custardcs

Custardcs commented 5 years ago

yes it failed 1st time because i didnt have it installed lol i just ran off your package.json you will see i install it then run again and look

PS C:\Users\CuntarD\Desktop\Electron-Application-master> ./node_modules/.bin/electron-rebuild
√ Rebuild Complete
Escyth commented 5 years ago
PS C:\Users\CuntarD\Desktop\Electron-Application-master> npm i electron-rebuild
npm WARN enmap@4.8.1 requires a peer of better-sqlite-pool@github:eslachance/better-sqlite-pool but none is installed. You must install peer dependencies yourself.
npm WARN bank-account@1.0.0 No repository field.
npm WARN bank-account@1.0.0 No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

+ electron-rebuild@1.8.4
added 108 packages from 60 contributors and audited 2636 packages in 13.138s
found 0 vulnerabilities

Huh, you already installed it and I'm sure I did too.

Escyth commented 5 years ago

@Custardcs | pls <3

Custardcs commented 5 years ago

Im not sure what else i can do bro.. i tested everything with your project and you have my full log. so it does work.

Escyth commented 5 years ago

Rips :(

githoniel commented 5 years ago

In electron 4.0.3, I rebuild sucess and crash after load better_sqlite3.node. I'm using serval node native modules like ffi, 'serialport', only this will crash the process

only crash in webpack, using process.dlopen, but run well withount webpack.

lincolnaleixo commented 5 years ago

Just to point that I'm also having problems with this. Get this error:

NODE_MODULE_VERSION 67. This version of Node.js requires NODE_MODULE_VERSION 64. Please try re-compiling or re-installing

I have electron-forge that rebuild everything after electron start BUT I also test directly with electron-rebuild. I also remove node_modules folder and installed everything again from scratch but still get the error.

Anyone was able to fix this already? Thanks!

barbalex commented 5 years ago

What happended to me 7 weeks ago (https://github.com/JoshuaWise/better-sqlite3/issues/126#issuecomment-461608144) is still happening an my MacBook. After loosing many hours trying to solve it I gave up, bought a Windows Notebook. On which this error has not (yet) occured.

meesterturner commented 5 years ago

Where it doesn't work for you even with the windows-build-tools, here is the fix :

  • Install Visual Studio Installer
  • Modify Visual Studio Build Tools 2017 (or install if you don't have)
  • Inside Visual C++ Build Tools, tick VC++ 2015.3 v14.00 (v140) toolset
  • Push the Install button (or Modify)
  • Retry running npm install better-sqlite3
  • Run node_modules/.bin/electron-rebuild -f -w better-sqlite3

And there you go, you can run your app.

I was struggling with this on my Windows machine for about an hour, until I realised that there are two electron-rebuild scripts in that folder.... The windows one ends in ".cmd", so the command you need to run is:

node_modules/.bin/electron-rebuild.cmd -f -w better-sqlite3

I've actually put this into a postinstall script in my package.json file, which now works for me.

Custardcs commented 5 years ago

Just to point that I'm also having problems with this. Get this error:

NODE_MODULE_VERSION 67. This version of Node.js requires NODE_MODULE_VERSION 64. Please try re-compiling or re-installing

I have electron-forge that rebuild everything after electron start BUT I also test directly with electron-rebuild. I also remove node_modules folder and installed everything again from scratch but still get the error.

Anyone was able to fix this already? Thanks!

So when you have a version mismatch you don't always need to delete everything.. The easiest way to fix this is a simple rebuild. just make sure you have the npm package installed. 📦

you can try 'npm rebuild' and/or

node_modules/.bin/electron-rebuild -f -w better-sqlite3

if you have more than one module that needs building like (bcypt) its best to use

node_modules/.bin/electron-rebuild.

if you have to then I seem to find doing it like this seems to work always.

Here

Custardcs commented 5 years ago

Where it doesn't work for you even with the windows-build-tools, here is the fix :

  • Install Visual Studio Installer
  • Modify Visual Studio Build Tools 2017 (or install if you don't have)
  • Inside Visual C++ Build Tools, tick VC++ 2015.3 v14.00 (v140) toolset
  • Push the Install button (or Modify)
  • Retry running npm install better-sqlite3
  • Run node_modules/.bin/electron-rebuild -f -w better-sqlite3

And there you go, you can run your app.

I was struggling with this on my Windows machine for about an hour, until I realised that there are two electron-rebuild scripts in that folder.... The windows one ends in ".cmd", so the command you need to run is:

node_modules/.bin/electron-rebuild.cmd -f -w better-sqlite3

I've actually put this into a postinstall script in my package.json file, which now works for me.

only problem with that as mac and linux not being able to use it. thats why Its not in the config. for us. but glad its working for you!

jl4386 commented 5 years ago

I have successfully run better-sqlite3 with my electron app. Just one more question is what is the best approach to query database from renderer process, by IPC calls to main process? I learned from James's post @jlongster that it's not ideal to block/overuse main process. Just wanna know if there is a optimal solution for this. Thanks!

mandaputtra commented 5 years ago

@giddens9527 If there was no other way to do that without IPC call to main process, then you're good to go. I don't think there any other way