0
が動作していません-devの--save電子再構築ビルドsqlite3のは、私は次の手順で、電子アプリでSQLiteのデータベースを使用しようとしている
、3- NPMインストール
、4- //再構築追加し、package.jsonするスクリプトを起動
"start": "electron .",
"rebuild": "electron-rebuild -f -w sqlite3",
5 NPMの実行は
を再構築し、それはいくつかのエラーを表示します:
> [email protected] rebuild C:\Users\wnw\projs\sql3
> electron-rebuild -f -w sqlite3
? 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
'python' is not recognized as an internal or external command,
operable program or batch file.
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171
,5): error MSB6006: "cmd.exe" exited with code 1. [C:\Users\wnw\projs\sql3\node_
modules\sqlite3\build\deps\action_before_build.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files\MSBuild\14.0\bin\msbuild.exe` failed wit
h exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\wnw\projs\sql3\node_modules\
node-gyp\lib\build.js:258: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_proces
s.js:198:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\wnw\\projs\\s
ql3\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--target=1.4.13" "--ar
ch=ia32" "--dist-url=https://atom.io/download/electron" "--build-from-source" "-
-module_name=node_sqlite3" "--module_path=C:\\Users\\wnw\\projs\\sql3\\node_modu
les\\sqlite3\\lib\\binding\\electron-v1.4-win32-ia32" "--host=https://mapbox-nod
e-binary.s3.amazonaws.com" "--remote_path=./{name}/v3.1.13/{toolset}/" "--packag
e_name=electron-v1.4-win32-ia32.tar.gz"
gyp ERR! cwd C:\Users\wnw\projs\sql3\node_modules\sqlite3
gyp ERR! node -v v8.9.1
gyp ERR! node-gyp -v v3.6.2
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
'python' is not recognized as an internal or external command,
operable program or batch file.
C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets(171
,5): error MSB6006: "cmd.exe" exited with code 1. [C:\Users\wnw\projs\sql3\node_
modules\sqlite3\build\deps\action_before_build.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files\MSBuild\14.0\bin\msbuild.exe` failed wit
h exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\wnw\projs\sql3\node_modules\
node-gyp\lib\build.js:258: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_proces
s.js:198:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\wnw\\projs\\s
ql3\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--target=1.4.13" "--ar
ch=ia32" "--dist-url=https://atom.io/download/electron" "--build-from-source" "-
-module_name=node_sqlite3" "--module_path=C:\\Users\\wnw\\projs\\sql3\\node_modu
les\\sqlite3\\lib\\binding\\electron-v1.4-win32-ia32" "--host=https://mapbox-nod
e-binary.s3.amazonaws.com" "--remote_path=./{name}/v3.1.13/{toolset}/" "--packag
e_name=electron-v1.4-win32-ia32.tar.gz"
gyp ERR! cwd C:\Users\wnw\projs\sql3\node_modules\sqlite3
gyp ERR! node -v v8.9.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Failed with exit code: 1
at SafeSubscriber._error (C:\Users\wnw\projs\sql3\node_modules\spawn-rx\lib\
src\index.js:277:84)
at SafeSubscriber.__tryOrUnsub (C:\Users\wnw\projs\sql3\node_modules\rxjs\Su
bscriber.js:238:16)
at SafeSubscriber.error (C:\Users\wnw\projs\sql3\node_modules\rxjs\Subscribe
r.js:197:26)
at Subscriber._error (C:\Users\wnw\projs\sql3\node_modules\rxjs\Subscriber.j
s:128:26)
at Subscriber.error (C:\Users\wnw\projs\sql3\node_modules\rxjs\Subscriber.js
:102:18)
at MapSubscriber.Subscriber._error (C:\Users\wnw\projs\sql3\node_modules\rxj
s\Subscriber.js:128:26)
at MapSubscriber.Subscriber.error (C:\Users\wnw\projs\sql3\node_modules\rxjs
\Subscriber.js:102:18)
at SafeSubscriber._next (C:\Users\wnw\projs\sql3\node_modules\spawn-rx\lib\s
rc\index.js:251:65)
at SafeSubscriber.__tryOrSetError (C:\Users\wnw\projs\sql3\node_modules\rxjs
\Subscriber.js:247:16)
at SafeSubscriber.next (C:\Users\wnw\projs\sql3\node_modules\rxjs\Subscriber
.js:187:27)
npm ERR! code ELIFECYCLE
npm ERR! errno 4294967295
npm ERR! [email protected] rebuild: `electron-rebuild -f -w sqlite3`
npm ERR! Exit status 4294967295
npm ERR!
npm ERR! Failed at the [email protected] rebuild script.
npm ERR! This is probably not a problem with npm. There is likely additional log
ging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\wnw\AppData\Roaming\npm-cache\_logs\2017-11-12T11_04_58_33
3Z-debug.log
ログファイル:私はすべてのこれらのステップに続い
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Users\\wnw\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'rebuild' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prerebuild', 'rebuild', 'postrebuild' ]
5 info lifecycle [email protected]~prerebuild: [email protected]
6 info lifecycle [email protected]~rebuild: [email protected]
7 verbose lifecycle [email protected]~rebuild: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~rebuild: PATH: C:\Users\wnw\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin;C:\Users\wnw\projs\sql3\node_modules\.bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\NVIDIA Corporation\PhysX\Common;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files\Intel\OpenCL SDK\2.0\bin\x86;C:\Program Files\Intel\OpenCL SDK\2.0\bin\x86;C:\Users\wnw\AppData\Local\Android\sdk\platform-tools;C:\Program Files\Git\cmd;C:\Program Files\Brackets\command;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\ManagementStudio\;C:\Program Files\Microsoft SQL Server\120\DTS\Binn\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\AppServ\php5;C:\Users\wnw\AppData\Roaming\npm;C:\Program Files\WinAnt\bin;C:\Program Files\Git;C:\adb;C:\Program Files\MySQL\MySQL Utilities 1.6\;C:\Program Files\nodejs\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\AppServ\php5;C:\Program Files\WinAnt\bin;C:\Program Files\Git;C:\Users\wnw\AppData\Roaming\npm
9 verbose lifecycle [email protected]~rebuild: CWD: C:\Users\wnw\projs\sql3
10 silly lifecycle [email protected]~rebuild: Args: [ '/d /s /c', 'electron-rebuild -f -w sqlite3' ]
11 silly lifecycle [email protected]~rebuild: Returned: code: 4294967295 signal: null
12 info lifecycle [email protected]~rebuild: Failed to exec rebuild script
13 verbose stack Error: [email protected] rebuild: `electron-rebuild -f -w sqlite3`
13 verbose stack Exit status 4294967295
13 verbose stack at EventEmitter.<anonymous> (C:\Users\wnw\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\index.js:280:16)
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at EventEmitter.emit (events.js:214:7)
13 verbose stack at ChildProcess.<anonymous> (C:\Users\wnw\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at ChildProcess.emit (events.js:214:7)
13 verbose stack at maybeClose (internal/child_process.js:925:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
14 verbose pkgid [email protected]
15 verbose cwd C:\Users\wnw\projs\sql3
16 verbose Windows_NT 6.1.7601
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\wnw\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "run" "rebuild"
18 verbose node v8.9.1
19 verbose npm v5.5.1
20 error code ELIFECYCLE
21 error errno 4294967295
22 error [email protected] rebuild: `electron-rebuild -f -w sqlite3`
22 error Exit status 4294967295
23 error Failed at the [email protected] rebuild script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 4294967295, true ]
: https://github.com/nodejs/node-gyp
私は 'sqlite'チームがノード8.x用にプリコンパイルされたバージョンを用意していないと思います。古いNodeをインストールしたり、Windowsツールをインストールしたり、独立してライブラリを構築したりすることができます。 sqlite 'npm install sqlite'をインストールしようとすると、エラーを簡単にチェックできます。 –
ノード7.0.0と同じもの – Nameer