Build fails if npm path has spaces.
panther7 opened this issue · comments
Win 10, x64
> sqlite3@5.0.1 install D:\builds\bf1ca075\0\sbrowser\software\browser-custom-modules-sources\_build-workspace\node_modules\sqlite3
> node-pre-gyp install --fallback-to-build
node-pre-gyp WARN Using request for node-pre-gyp https download
C:\Users\sbrowser\.windows-build-tools\python27\python.exe: can't open file 'C:\Program': [Errno 2] No such file or directory
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 2
gyp ERR! stack at ChildProcess.onCpExit (C:\Program Files\nodejs\node_modules\nw-gyp\lib\configure.js:383:16)
gyp ERR! stack at ChildProcess.emit (node:events:329:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:277:12)
gyp ERR! System Windows_NT 10.0.19042
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\nw-gyp\\bin\\nw-gyp.js" "configure" "--fallback-to-build" "--module=D:\\builds\\bf1ca075\\0\\sbrowser\\software\\browser-custom-modules-sources\\_build-workspace\\node_modules\\sqlite3\\lib\\binding\\napi-v6-win32-ia32\\node_sqlite3.node" "--module_name=node_sqlite3" "--module_path=D:\\builds\\bf1ca075\\0\\sbrowser\\software\\browser-custom-modules-sources\\_build-workspace\\node_modules\\sqlite3\\lib\\binding\\napi-v6-win32-ia32" "--napi_version=7" "--node_abi_napi=napi" "--napi_build_version=6" "--node_napi_label=napi-v6" "--python=C:\\Users\\sbrowser\\.windows-build-tools\\python27\\python.exe" "--msvs_version=2015"
gyp ERR! cwd D:\builds\bf1ca075\0\sbrowser\software\browser-custom-modules-sources\_build-workspace\node_modules\sqlite3
gyp ERR! node -v v15.2.1
gyp ERR! nw-gyp -v v6.1.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'nw-gyp.cmd configure --fallback-to-build --module=D:\builds\bf1ca075\0\sbrowser\software\browser-custom-modules-sources\_build-workspace\node_modules\sqlite3\lib\binding\napi-v6-win32-ia32\node_sqlite3.node --module_name=node_sqlite3 --module_path=D:\builds\bf1ca075\0\sbrowser\software\browser-custom-modules-sources\_build-workspace\node_modules\sqlite3\lib\binding\napi-v6-win32-ia32 --napi_version=7 --node_abi_napi=napi --napi_build_version=6 --node_napi_label=napi-v6 --python=C:\Users\sbrowser\.windows-build-tools\python27\python.exe --msvs_version=2015' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (D:\builds\bf1ca075\0\sbrowser\software\browser-custom-modules-sources\_build-workspace\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.emit (node:events:329:20)
node-pre-gyp ERR! stack at maybeClose (node:internal/child_process:1055:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (node:internal/child_process:288:5)
node-pre-gyp ERR! System Windows_NT 10.0.19042