电子无法重建sqlite3,显示错误

时间:2018-11-04 17:23:05

标签: sqlite electron

操作系统:Windows 10 64bit
节点版本:v10.13.0
Node-gyp版本:3.8.0

已经安装了这些
-Visual Studio构建工具2017
-用于桌面的VC ++ 2015 v14.00(v140)工具集
-Windows 8.1 SDK
-Python 2.7

已经执行此命令:

  

npm install --global --production Windows-build-tools

显示“成功安装了Visual Studio Build Tools和Python 2.7.15”

这是我的package.json文件代码


    {
      "name": "firstdesktopapp",
      "version": "1.0.0",
      "description": "First Desktop App on Electron",
      "main": "app.js",
      "scripts": {
        "start": "electron .",
        "rebuild": "electron-rebuild  -f -w sqlite3"
      },
      "author": "Makhmoor Rehman",
      "license": "NaN",
      "devDependencies": {
        "electron": "^4.0.0-nightly.20181010",
        "electron-rebuild": "^1.8.2"
      },
      "dependencies": {
        "sequelize": "^4.41.0",
        "sqlite3": "^4.0.3"
      }
    }

毕竟,当我尝试执行此命令时

  

npm运行重建

它在Powershell中显示此错误

× Rebuild Failed

An unhandled error occurred inside electron-rebuild
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  unpack_sqlite_dep
  sqlite3.c
  win_delay_load_hook.cc
  sqlite3.vcxproj -> E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\Release\\sqlite3.lib
  database.cc
  node_sqlite3.cc
  statement.cc
  win_delay_load_hook.cc
..\src\statement.cc(103): warning C4996: 'Nan::ForceSet': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\database.cc(49): warning C4996: 'Nan::MakeCallback': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(21): warning C4996: 'Nan::ForceSet': was declared deprecated 
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "E:\\Nodejs\\node.exe" "E:\\NodeJSProjects\\ElectronJs\\FirstDesktopAPp\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--target=4.0.0-nightly.20181010" "--arch=x64" "--dist-url=https://atom.io/download/electron" "--build-from-source" "--module_name=node_sqlite3" "--module_path=E:\\NodeJSProjects\\ElectronJs\\FirstDesktopAPp\\node_modules\\sqlite3\\lib\\binding\\electron-v4.0-win32-x64" "--host=https://mapbox-node-binary.s3.amazonaws.com" "--remote_path=./{name}/v4.0.3/{toolset}/" "--package_name=electron-v4.0-win32-x64.tar.gz"
gyp ERR! cwd E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3
gyp ERR! node -v v10.13.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok

Failed with exit code: 1

Error: Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
  unpack_sqlite_dep
  sqlite3.c
  win_delay_load_hook.cc
  sqlite3.vcxproj -> E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\Release\\sqlite3.lib
  database.cc
  node_sqlite3.cc
  statement.cc
  win_delay_load_hook.cc
..\src\statement.cc(103): warning C4996: 'Nan::ForceSet': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\database.cc(49): warning C4996: 'Nan::MakeCallback': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(21): warning C4996: 'Nan::ForceSet': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  e:\nodejsprojects\electronjs\firstdesktopapp\node_modules\nan\nan_maybe_43_inl.h(130): note: see declaration of 'Nan::ForceSet'E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\nan\nan.h(929): note: see declaration of 'Nan::MakeCallback'e:\nodejsprojects\electronjs\firstdesktopapp\node_modules\nan\nan_maybe_43_inl.h(130): note: see declaration of 'Nan::ForceSet'


..\src\database.cc(63): warning C4996: 'Nan::MakeCallback': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(22): warning C4996: 'Nan::ForceSet': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\nan\nan.h(929): note: see declaration of 'Nan::MakeCallback'
  e:\nodejsprojects\electronjs\firstdesktopapp\node_modules\nan\nan_maybe_43_inl.h(130): note: see declaration of 'Nan::ForceSet'
..\src\node_sqlite3.cc(23): warning C4996: 'Nan::ForceSet': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  e:\nodejsprojects\electronjs\firstdesktopapp\node_modules\nan\nan_maybe_43_inl.h(130): note: see declaration of 'Nan::ForceSet'
..\src\node_sqlite3.cc(24): warning C4996: 'Nan::ForceSet': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  e:\nodejsprojects\electronjs\firstdesktopapp\node_modules\nan\nan_maybe_43_inl.h(130): note: see declaration of 'Nan::ForceSet'
..\src\database.cc(133): warning C4996: 'Nan::ForceSet': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  e:\nodejsprojects\electronjs\firstdesktopapp\node_modules\nan\nan_maybe_43_inl.h(130): note: see declaration of 'Nan::ForceSet'
..\src\node_sqlite3.cc(38): warning C4996: 'Nan::ForceSet': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  e:\nodejsprojects\electronjs\firstdesktopapp\node_modules\nan\nan_maybe_43_inl.h(130): note: see declaration of 'Nan::ForceSet'..\src\database.cc(134): warning C4996: 'Nan::ForceSet': was declared deprecated
..\src\statement.cc(347): warning C4996: 'Nan::MakeCallback': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]

..\src\node_sqlite3.cc(39): warning C4996: 'Nan::ForceSet': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  e:\nodejsprojects\electronjs\firstdesktopapp\node_modules\nan\nan_maybe_43_inl.h(130): note: see declaration of 'Nan::ForceSet'
  E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\nan\nan.h(929): note: see declaration of 'Nan::MakeCallback'e:\nodejsprojects\electronjs\firstdesktopapp\node_modules\nan\nan_maybe_43_inl.h(130): note: see declaration of 'Nan::ForceSet'

..\src\node_sqlite3.cc(40): warning C4996: 'Nan::ForceSet': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  e:\nodejsprojects\electronjs\firstdesktopapp\node_modules\nan\nan_maybe_43_inl.h(130): note: see declaration of 'Nan::ForceSet'
..\src\statement.cc(412): warning C4996: 'Nan::MakeCallback': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(41): warning C4996: 'Nan::ForceSet': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\nan\nan.h(929): note: see declaration of 'Nan::MakeCallback'
  e:\nodejsprojects\electronjs\firstdesktopapp\node_modules\nan\nan_maybe_43_inl.h(130): note: see declaration of 'Nan::ForceSet'
..\src\database.cc(190): warning C4996: 'Nan::MakeCallback': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\statement.cc(416): warning C4996: 'Nan::MakeCallback': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\nan\nan.h(929): note: see declaration of 'Nan::MakeCallback'E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\nan\nan.h(929): note: see declaration of 'Nan::MakeCallback'..\src\node_sqlite3.cc(42): warning C4996: 'Nan::ForceSet': was declared deprecated


  e:\nodejsprojects\electronjs\firstdesktopapp\node_modules\nan\nan_maybe_43_inl.h(130): note: see declaration of 'Nan::ForceSet'
..\src\database.cc(194): warning C4996: 'Nan::MakeCallback': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\nan\nan.h(929): note: see declaration of 'Nan::MakeCallback'..\src\node_sqlite3.cc(43): warning C4996: 'Nan::ForceSet': was declared deprecated

  e:\nodejsprojects\electronjs\firstdesktopapp\node_modules\nan\nan_maybe_43_inl.h(130): note: see declaration of 'Nan::ForceSet'
..\src\database.cc(199): warning C4996: 'Nan::MakeCallback': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\nan\nan.h(929): note: see declaration of 'Nan::MakeCallback'
..\src\node_sqlite3.cc(44): warning C4996: 'Nan::ForceSet': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  e:\nodejsprojects\electronjs\firstdesktopapp\node_modules\nan\nan_maybe_43_inl.h(130): note: see declaration of 'Nan::ForceSet'
..\src\node_sqlite3.cc(45): warning C4996: 'Nan::ForceSet': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  e:\nodejsprojects\electronjs\firstdesktopapp\node_modules\nan\nan_maybe_43_inl.h(130): note: see declaration of 'Nan::ForceSet'
..\src\statement.cc(483): warning C4996: 'Nan::MakeCallback': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\node_sqlite3.cc(46): warning C4996: 'Nan::ForceSet': was declared deprecatedE:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\nan\nan.h(929): note: see declaration of 'Nan::MakeCallback'..\src\database.cc(273): warning C4996: 'Nan::MakeCallback': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]


  E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\nan\nan.h(929): note: see declaration of 'Nan::MakeCallback'
  e:\nodejsprojects\electronjs\firstdesktopapp\node_modules\nan\nan_maybe_43_inl.h(130): note: see declaration of 'Nan::ForceSet'
..\src\database.cc(277): warning C4996: 'Nan::MakeCallback': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\nan\nan.h(929): note: see declaration of 'Nan::MakeCallback'
..\src\node_sqlite3.cc(47): warning C4996: 'Nan::ForceSet': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\database.cc(282): warning C4996: 'Nan::MakeCallback': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\nan\nan.h(929): note: see declaration of 'Nan::MakeCallback'
  e:\nodejsprojects\electronjs\firstdesktopapp\node_modules\nan\nan_maybe_43_inl.h(130): note: see declaration of 'Nan::ForceSet'..\src\database.cc(297): warning C4996: 'Nan::MakeCallback': was declared deprecated
  E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\nan\nan.h(929): note: see declaration of 'Nan::MakeCallback'

..\src\node_sqlite3.cc(48): warning C4996: 'Nan::ForceSet': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\database.cc(314): warning C4996: 'Nan::MakeCallback': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\nan\nan.h(929): note: see declaration of 'Nan::MakeCallback'
  e:\nodejsprojects\electronjs\firstdesktopapp\node_modules\nan\nan_maybe_43_inl.h(130): note: see declaration of 'Nan::ForceSet'
..\src\node_sqlite3.cc(49): warning C4996: 'Nan::ForceSet': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  e:\nodejsprojects\electronjs\firstdesktopapp\node_modules\nan\nan_maybe_43_inl.h(130): note: see declaration of 'Nan::ForceSet'
..\src\node_sqlite3.cc(50): warning C4996: 'Nan::ForceSet': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  e:\nodejsprojects\electronjs\firstdesktopapp\node_modules\nan\nan_maybe_43_inl.h(130): note: see declaration of 'Nan::ForceSet'
..\src\node_sqlite3.cc(51): warning C4996: 'Nan::ForceSet': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  e:\nodejsprojects\electronjs\firstdesktopapp\node_modules\nan\nan_maybe_43_inl.h(130): note: see declaration of 'Nan::ForceSet'
..\src\node_sqlite3.cc(52): warning C4996: 'Nan::ForceSet': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\statement.cc(556): warning C4996: 'Nan::MakeCallback': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  e:\nodejsprojects\electronjs\firstdesktopapp\node_modules\nan\nan_maybe_43_inl.h(130): note: see declaration of 'Nan::ForceSet'E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\nan\nan.h(929): note: see declaration of 'Nan::MakeCallback'

..\src\node_sqlite3.cc(53): warning C4996: 'Nan::ForceSet': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\statement.cc(564): warning C4996: 'Nan::MakeCallback': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  e:\nodejsprojects\electronjs\firstdesktopapp\node_modules\nan\nan_maybe_43_inl.h(130): note: see declaration of 'Nan::ForceSet'
  E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\nan\nan.h(929): note: see declaration of 'Nan::MakeCallback'
..\src\node_sqlite3.cc(54): warning C4996: 'Nan::ForceSet': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  e:\nodejsprojects\electronjs\firstdesktopapp\node_modules\nan\nan_maybe_43_inl.h(130): note: see declaration of 'Nan::ForceSet'
..\src\node_sqlite3.cc(55): warning C4996: 'Nan::ForceSet': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  e:\nodejsprojects\electronjs\firstdesktopapp\node_modules\nan\nan_maybe_43_inl.h(130): note: see declaration of 'Nan::ForceSet'
..\src\node_sqlite3.cc(56): warning C4996: 'Nan::ForceSet': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  e:\nodejsprojects\electronjs\firstdesktopapp\node_modules\nan\nan_maybe_43_inl.h(130): note: see declaration of 'Nan::ForceSet'
..\src\node_sqlite3.cc(57): warning C4996: 'Nan::ForceSet': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  e:\nodejsprojects\electronjs\firstdesktopapp\node_modules\nan\nan_maybe_43_inl.h(130): note: see declaration of 'Nan::ForceSet'
..\src\statement.cc(680): warning C4996: 'Nan::MakeCallback': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\nan\nan.h(929): note: see declaration of 'Nan::MakeCallback'
..\src\statement.cc(694): warning C4996: 'Nan::MakeCallback': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\nan\nan.h(929): note: see declaration of 'Nan::MakeCallback'
..\src\database.cc(418): warning C4996: 'Nan::MakeCallback': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\nan\nan.h(929): note: see declaration of 'Nan::MakeCallback'
..\src\statement.cc(743): warning C4996: 'Nan::MakeCallback': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\nan\nan.h(929): note: see declaration of 'Nan::MakeCallback'
..\src\statement.cc(837): warning C4996: 'Nan::MakeCallback': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\nan\nan.h(929): note: see declaration of 'Nan::MakeCallback'
..\src\statement.cc(873): warning C4996: 'Nan::MakeCallback': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\nan\nan.h(929): note: see declaration of 'Nan::MakeCallback'
..\src\database.cc(459): warning C4996: 'Nan::MakeCallback': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
..\src\statement.cc(887): warning C4996: 'Nan::MakeCallback': was declared deprecatedE:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\nan\nan.h(929): note: see declaration of 'Nan::MakeCallback' [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]

  E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\nan\nan.h(929): note: see declaration of 'Nan::MakeCallback'
..\src\database.cc(504): warning C4996: 'Nan::MakeCallback': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\nan\nan.h(929): note: see declaration of 'Nan::MakeCallback'
..\src\database.cc(561): warning C4996: 'Nan::MakeCallback': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\nan\nan.h(929): note: see declaration of 'Nan::MakeCallback'
..\src\database.cc(565): warning C4996: 'Nan::MakeCallback': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\nan\nan.h(929): note: see declaration of 'Nan::MakeCallback'
..\src\database.cc(570): warning C4996: 'Nan::MakeCallback': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\nan\nan.h(929): note: see declaration of 'Nan::MakeCallback'
..\src\database.cc(600): warning C4996: 'Nan::MakeCallback': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\nan\nan.h(929): note: see declaration of 'Nan::MakeCallback'
..\src\database.cc(663): warning C4996: 'Nan::MakeCallback': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\nan\nan.h(929): note: see declaration of 'Nan::MakeCallback'
..\src\database.cc(667): warning C4996: 'Nan::MakeCallback': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\nan\nan.h(929): note: see declaration of 'Nan::MakeCallback'
..\src\database.cc(672): warning C4996: 'Nan::MakeCallback': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\nan\nan.h(929): note: see declaration of 'Nan::MakeCallback'
..\src\statement.cc(74): warning C4996: 'Nan::MakeCallback': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\nan\nan.h(929): note: see declaration of 'Nan::MakeCallback'
  ..\src\statement.cc(153): note: see reference to function template instantiation 'void node_sqlite3::Statement::Error(T *)' being compiled
          with
          [
              T=node_sqlite3::Statement::PrepareBaton
          ]
..\src\statement.cc(78): warning C4996: 'Nan::MakeCallback': was declared deprecated [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
  E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\nan\nan.h(929): note: see declaration of 'Nan::MakeCallback'
     Creating library E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\Release\node_sqlite3.lib and object E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\Release\node_sqlite3.exp
database.obj : error LNK2001: unresolved external symbol __imp_uv_queue_work [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
database.obj : error LNK2001: unresolved external symbol __imp_uv_close [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
database.obj : error LNK2001: unresolved external symbol __imp_uv_async_send [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
database.obj : error LNK2001: unresolved external symbol __imp_uv_async_init [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
database.obj : error LNK2001: unresolved external symbol __imp_uv_default_loop [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\Release\node_sqlite3.node : fatal error LNK1120: 5 unresolved externals [E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3\build\node_sqlite3.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\node-gyp\lib\build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "E:\\Nodejs\\node.exe" "E:\\NodeJSProjects\\ElectronJs\\FirstDesktopAPp\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--target=4.0.0-nightly.20181010" "--arch=x64" "--dist-url=https://atom.io/download/electron" "--build-from-source" "--module_name=node_sqlite3" "--module_path=E:\\NodeJSProjects\\ElectronJs\\FirstDesktopAPp\\node_modules\\sqlite3\\lib\\binding\\electron-v4.0-win32-x64" "--host=https://mapbox-node-binary.s3.amazonaws.com" "--remote_path=./{name}/v4.0.3/{toolset}/" "--package_name=electron-v4.0-win32-x64.tar.gz"
gyp ERR! cwd E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\sqlite3
gyp ERR! node -v v10.13.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok

Failed with exit code: 1
    at SafeSubscriber._error (E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\spawn-rx\lib\src\index.js:277:84)
    at SafeSubscriber.__tryOrUnsub (E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\rxjs\Subscriber.js:242:16)
    at SafeSubscriber.error (E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\rxjs\Subscriber.js:201:26)
    at Subscriber._error (E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\rxjs\Subscriber.js:132:26)
    at Subscriber.error (E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\rxjs\Subscriber.js:106:18)
    at MapSubscriber.Subscriber._error (E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\rxjs\Subscriber.js:132:26)
    at MapSubscriber.Subscriber.error (E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\rxjs\Subscriber.js:106:18)
    at SafeSubscriber._next (E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\spawn-rx\lib\src\index.js:251:65)
    at SafeSubscriber.__tryOrUnsub (E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\rxjs\Subscriber.js:242:16)
    at SafeSubscriber.next (E:\NodeJSProjects\ElectronJs\FirstDesktopAPp\node_modules\rxjs\Subscriber.js:189:22)
npm ERR! code ELIFECYCLE
npm ERR! errno 4294967295
npm ERR! firstdesktopapp@1.0.0 rebuild: `electron-rebuild  -f -w sqlite3`
npm ERR! Exit status 4294967295
npm ERR!
npm ERR! Failed at the firstdesktopapp@1.0.0 rebuild script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\makhm\AppData\Roaming\npm-cache\_logs\2018-11-04T17_11_56_729Z-debug.log

请帮助我在电子应用中重建sqlite3

0 个答案:

没有答案