![Electron npm](https://cdn1.cdnme.se/5447227/9-3/15_64e61dfcddf2b36505b4c7c9.png)
![electron npm electron npm](https://image.slidesharecdn.com/fridaytalk-electron-160701193918/95/electron-21-638.jpg)
Var db = new sqlite3.Database('mydb.db') ĭb. My.js file var sqlite3 = require('sqlite3').verbose() npm install for the Foo Bar app has been run at least once When one runs the following command for the first time in the foobar directory: npx electron-packager. MainWindow.loadUrl('file://' + _dirname + '/index.html') The electron module is in the devDependencies section of package.json, and set to the exact version of 1.4.15.
![electron npm electron npm](http://4.bp.blogspot.com/-28b2NdIWHlQ/VgDE01jw5PI/AAAAAAAAQmo/9eiA4iX2uMY/s1600/670px-Find-the-Number-of-Protons%252C-Neutrons%252C-and-Electrons-Step-5.jpg)
Var BrowserWindow = require('browser-window') My development environment is windows 8.1 圆4 I want to develop desktop app using electron that uses sqlite3 package installed via npm with the command npm install -save sqlite3īut it gives the following error in electron browser console Uncaught Error: Cannot find module 'E:\allcode\eapp\node_modules\sqlite3\lib\binding\node-v45-win32-圆4\node_sqlite3.node'
![Electron npm](https://cdn1.cdnme.se/5447227/9-3/15_64e61dfcddf2b36505b4c7c9.png)