Can not rebuild sqlite3


#1

I installed sqlite 3 with electron and it successfully got installed.
But when i try to rebuild sqlite3 with "electron-rebuild -f -w sqlite3" It gives following error after rebuild failed.

An unhandled error occurred inside electron-rebuild
D:\ionic\demos\electron\sqlite\node_modules\sqlite3\build\binding.sln : error MSB3411: Could not load the Visual C++ component “VC
Build.exe”. If the component is not installed, either 1) install the Microsoft Windows SDK for Windows Server 2008 and .NET Framework 3.5, or 2) install Microsoft Visual Studio 2008.
gyp ERR! build error
gyp ERR! stack Error: C:\Windows\Microsoft.NET\Framework\v3.5\msbuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (D:\ionic\demos\electron\sqlite\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Windows_NT 6.1.7600
gyp ERR! command “C:\Program Files\nodejs\node.exe” “D:\ionic\demos\electron\sqlite\node_modules\node-gyp\bin\node-gyp.
js” “rebuild” “–target=1.6.11” “–arch=x64” “–dist-url=https://atom.io/download/electron” “–build-from-source” “–module_name=n
ode_sqlite3” “–module_path=D:\ionic\demos\electron\sqlite\node_modules\sqlite3\lib\binding\electron-v1.6-win32-x64” “–h
ost=https://mapbox-node-binary.s3.amazonaws.com” “–remote_path=./{name}/v3.1.13/{toolset}/” "–package_name=electron-v1.6-win32-x64.tar.gz"
gyp ERR! cwd D:\ionic\demos\electron\sqlite\node_modules\sqlite3
gyp ERR! node -v v6.10.2
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Failed with exit code: 1
at SafeSubscriber._error (D:\ionic\demos\electron\sqlite\node_modules\spawn-rx\lib\src\index.js:277:84)
at SafeSubscriber.__tryOrUnsub (D:\ionic\demos\electron\sqlite\node_modules\rxjs\Subscriber.js:238:16)
at SafeSubscriber.error (D:\ionic\demos\electron\sqlite\node_modules\rxjs\Subscriber.js:197:26)
at Subscriber._error (D:\ionic\demos\electron\sqlite\node_modules\rxjs\Subscriber.js:128:26)
at Subscriber.error (D:\ionic\demos\electron\sqlite\node_modules\rxjs\Subscriber.js:102:18)
at MapSubscriber.Subscriber._error (D:\ionic\demos\electron\sqlite\node_modules\rxjs\Subscriber.js:128:26)
at MapSubscriber.Subscriber.error (D:\ionic\demos\electron\sqlite\node_modules\rxjs\Subscriber.js:102:18)
at SafeSubscriber._next (D:\ionic\demos\electron\sqlite\node_modules\spawn-rx\lib\src\index.js:251:65)
at SafeSubscriber.__tryOrSetError (D:\ionic\demos\electron\sqlite\node_modules\rxjs\Subscriber.js:247:16)
at SafeSubscriber.next (D:\ionic\demos\electron\sqlite\node_modules\rxjs\Subscriber.js:187:27)

gyp ERR! build error
gyp ERR! stack Error: C:\Windows\Microsoft.NET\Framework\v3.5\msbuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (D:\ionic\demos\electron\sqlite\node_modules\node-gyp\lib\build.js:258:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
npm ERR! electron-rebuild -f -w sqlite3
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs electron-quick-start
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls electron-quick-start
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! D:\ionic\demos\electron\sqlite\npm-debug.log