Difference between "npm start" and "electron ."



I am trying to build pretty simple application which uses SQLite (recompilation under windows required).
The problem I face is related to the way aplication is started. While executing “npm start” I get:

On the other hand running with “electron .” is not an issue.

It generates a problem because when i try to apply testing (mocha) i cannot start the application.


  "main": "main.js",
  "scripts": {
    "start": "electron ."

Could you please help me understand what I am doing incorrectly?


I’m guessing npm start is running the locally installed version of Electron, while electron . (from the command prompt) is running the globally installed version, you’ve recompiled sqlite for one of those versions so it doesn’t run in the other one.