title: npm install sqlite3 --build-from-source error with electron
body: <p>When trying to use sqlite with electron i've been getting this error in the web console</p>
  
  <blockquote>
    <p>Error: Cannot find module       'C:\Users\Alejandro\Documents\Proyectos\format\node_modules\sqlite3\lib\binding\el ectron-v1.4-win32-ia32\node_sqlite3.node'</p>
  </blockquote>
  
  <p>After reading some posts in the site i've seen that by using</p>
  
  <blockquote>
    <p>npm install sqlite3 --build-from-source</p>
  </blockquote>
  
  <p>I can fix this error, however when i tried to do so i got the following message</p>
  
  <blockquote>
    <p>sqlite3@3.1.8 install C:\Users\Alejandro\Documents\Proyectos\format\node_modules\sqlite3
    node-pre-gyp install --fallback-to-build</p>
    
    <p>C:\Users\Alejandro\Documents\Proyectos\format\node_modules\sqlite3>if not defined npm_config_node_gyp (node "C:\Users\Alejandro\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" clean )  else (node "" clean )</p>
    
    <p>C:\Users\Alejandro\Documents\Proyectos\format\node_modules\sqlite3>if not defined npm_config_node_gyp (node "C:\Users\Alejandro\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" configure --fallback-to-build --module=C:\Users\Alejandro\Documents\Proyectos\format\node_modules\sqlite3\lib\binding\node-v48-win32-ia32\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\Alejandro\Documents\Proyectos\format\node_modules\sqlite3\lib\binding\node-v48-win32-ia32 )  else (node "" configure --fallback-to-build --module=C:\Users\Alejandro\Documents\Proyectos\format\node_modules\sqlite3\lib\binding\node-v48-win32-ia32\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\Alejandro\Documents\Proyectos\format\node_modules\sqlite3\lib\binding\node-v48-win32-ia32 )</p>
    
    <p>gyp ERR! configure error</p>
    
    <p>gyp ERR! stack Error: Python executable </p>
    
    <p>"C:\Users\Alejandro\AppData\Local\Programs\Python\Python35-32\python.EXE" is v3.5.1, which is not supported by gyp.</p>
    
    <p>gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 &amp; &lt; 3.0.0.</p>
    
    <p>gyp ERR! stack     at failPythonVersion (C:\Users\Alejandro\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\configure.js:454:14)</p>
    
    <p>gyp ERR! stack     at C:\Users\Alejandro\AppData\Roaming\npm\node_modules\npm\node_modules\node-
    gyp\lib\configure.js:443:9</p>
    
    <p>gyp ERR! stack     at ChildProcess.exithandler (child_process.js:197:7)</p>
    
    <p>gyp ERR! stack     at emitTwo (events.js:106:13)</p>
    
    <p>gyp ERR! stack     at ChildProcess.emit (events.js:191:7)</p>
    
    <p>gyp ERR! stack     at maybeClose (internal/child_process.js:877:16)</p>
    
    <p>gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)</p>
    
    <p>gyp ERR! System Windows_NT 10.0.14393</p>
    
    <p>gyp ERR! command "C:\Program Files (x86)\nodejs\node.exe"</p>
    
    <p>"C:\Users\Alejandro\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "configure" "--fallback-to-build" "--module=C:\Users\Alejandro\Documents\Proyectos\format\node_modules\sqlite3\lib\binding\node-v48-win32-ia32\node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=C:\Users\Alejandro\Documents\Proyectos\format\node_modules\sqlite3\lib\binding\node-v48-win32-ia32"</p>
    
    <p>gyp ERR! cwd C:\Users\Alejandro\Documents\Proyectos\format\node_modules\sqlite3</p>
    
    <p>gyp ERR! node -v v6.9.1</p>
    
    <p>gyp ERR! node-gyp -v v3.4.0</p>
    
    <p>gyp ERR! not ok</p>
    
    <p>node-pre-gyp ERR! build error</p>
    
    <p>node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp.cmd configure --fallback-to-build --module=C:\Users\Alejandro\Documents\Proyectos\format\node_modules\sqlite3\lib\binding\node-v48-win32-ia32\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\Alejandro\Documents\Proyectos\format\node_modules\sqlite3\lib\binding\node-v48-win32-ia32' (1)</p>
    
    <p>node-pre-gyp ERR! stack     at ChildProcess. (C:\Users\Alejandro\Documents\Proyectos\format\node_modules\sqlite3\node_modules\node-pre-gyp\lib\util\compile.js:83:29)</p>
    
    <p>node-pre-gyp ERR! stack     at emitTwo (events.js:106:13)</p>
    
    <p>node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:191:7)</p>
    
    <p>node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:877:16)</p>
    
    <p>node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)</p>
    
    <p>node-pre-gyp ERR! System Windows_NT 10.0.14393</p>
    
    <p>node-pre-gyp ERR! command "C:\Program Files (x86)\nodejs\node.exe" "C:\Users\Alejandro\Documents\Proyectos\format\node_modules\sqlite3\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-
    build"</p>
    
    <p>node-pre-gyp ERR! cwd C:\Users\Alejandro\Documents\Proyectos\format\node_modules\sqlite3</p>
    
    <p>node-pre-gyp ERR! node -v v6.9.1</p>
    
    <p>node-pre-gyp ERR! node-pre-gyp -v v0.6.31</p>
    
    <p>node-pre-gyp ERR! not ok
    Failed to execute 'node-gyp.cmd configure --fallback-to-build --module=C:\Users\Alejandro\Documents\Proyectos\format\node_modules\sqlite3\lib\binding\node-v48-win32-ia32\node_sqlite3.node --module_name=node_sqlite3 --module_path=C:\Users\Alejandro\Documents\Proyectos\format\node_modules\sqlite3\lib\binding\node-v48-win32-ia32' (1)</p>
    
    <p>npm ERR! Windows_NT 10.0.14393</p>
    
    <p>npm ERR! argv "C:\Program Files (x86)\nodejs\node.exe" "C:\Users\Alejandro\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install" "sqlite3" "--build-from-source"</p>
    
    <p>npm ERR! node v6.9.1</p>
    
    <p>npm ERR! npm  v3.10.9</p>
    
    <p>npm ERR! code ELIFECYCLE</p>
    
    <p>npm ERR! sqlite3@3.1.8 install: <code>node-pre-gyp install --fallback-to-build</code></p>
    
    <p>npm ERR! Exit status 1</p>
    
    <p>npm ERR!</p>
    
    <p>npm ERR! Failed at the sqlite3@3.1.8 install script 'node-pre-gyp install --fallback-to-build'.</p>
    
    <p>npm ERR! Make sure you have the latest version of node.js and npm installed.</p>
    
    <p>npm ERR! If you do, this is most likely a problem with the sqlite3 package,</p>
    
    <p>npm ERR! not with npm itself.</p>
    
    <p>npm ERR! Tell the author that this fails on your system:</p>
    
    <p>npm ERR!     node-pre-gyp install --fallback-to-build</p>
    
    <p>npm ERR! You can get information on how to open an issue for this project with:</p>
    
    <p>npm ERR!     npm bugs sqlite3</p>
    
    <p>npm ERR! Or if that isn't available, you can get their info via:</p>
    
    <p>npm ERR!     npm owner ls sqlite3</p>
    
    <p>npm ERR! There is likely additional logging output above.</p>
    
    <p>npm ERR! Please include the following file with any support request:</p>
    
    <p>npm ERR!     C:\Users\Alejandro\Documents\Proyectos\format\npm-debug.log</p>
  </blockquote>
  
  <p>I've already tried installing the node-gyp and node-pre-gyp dependancies and still get the same error</p>