为 Electron 应用程序重建 SQLite3 时出错



我正在尝试安装 sqlite3 以在 Windows 上的 Electron 中制作应用程序。我把我的包.json:

"rebuild": "electron-rebuild -f -w sqlite3"

当我运行时:

npm run rebuild

我收到此错误:

Error: The projects of this solution will be compiled one at a time. To enable compilation in parallel, add the "/ m" switch.
D:WindowsDevCopyWatchernode_modulessqlite3builddepsaction_before_build.vcxproj(20,3): error MSB4019: The imported project "D:  Microsoft.Cpp.Default.props" can not be found. Make sure that the path of the <Import> declaration is correct and that the file is on the disk.
gyp ERR! build error
gyp ERR! stack Error: `C:WindowsMicrosoft.NETFrameworkv4.0.30319msbuild.exe` failed with exit code: 1
gyp ERR! stack     at ChildProcess.onExit (D:WindowsDevCopyWatchernode_modulesnode-gyplibbuild.js:262:23)
gyp ERR! stack     at emitTwo (events.js:126:13)
gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Windows_NT 10.0.16299
gyp ERR! command "C:\Program Files\nodejs\node.exe" "D:\WindowsDev\CopyWatcher\node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--target=2.0.10" "--arch=x64" "--dist-url=https://atom.io/download/electron" "--build-from-source" "--module_name=node_sqlite3" "--module_path=D:\WindowsDev\CopyWatcher\node_modules\sqlite3\lib\binding\electron-v2.0-win32-x64" "--host=https://mapbox-node-binary.s3.amazonaws.com" "--remote_path=./{name}/v4.0.2/{toolset}/" "--package_name=electron-v2.0-win32-x64.tar.gz"
gyp ERR! cwd D:WindowsDevCopyWatchernode_modulessqlite3
gyp ERR! node -v v8.12.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok

我安装了Visual Studio Developer Tools 2015和sqlite3模块运行良好!

相关内容

最新更新