Skip to content

fix: build on Windows platform #51

fix: build on Windows platform

fix: build on Windows platform #51

Triggered via pull request November 30, 2024 09:28
Status Failure
Total duration 3m 2s
Artifacts

ci.yml

on: pull_request
Matrix: gyp
Fit to window
Zoom out
Zoom in

Annotations

4 errors
Unhandled error: index.mjs#L55
Error: Command failed: node-gyp rebuild --target=22.2.0 --nodedir=D:\a\nw-node-addon-example\nw-node-addon-example\node gyp info it worked if it ends with ok gyp info using [email protected] gyp info using [email protected] | win32 | x64 gyp info find Python using Python version 3.12.7 found at "C:\hostedtoolcache\windows\Python\3.12.7\x64\python.exe" gyp info find VS using VS2019 (16.11.35425.106) found at: gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise" gyp info find VS run with --verbose for detailed information gyp WARN read config.gypi ENOENT: no such file or directory, open 'D:\a\nw-node-addon-example\nw-node-addon-example\node\include\node\config.gypi' gyp info spawn C:\hostedtoolcache\windows\Python\3.12.7\x64\python.exe gyp info spawn args [ gyp info spawn args 'D:\\a\\nw-node-addon-example\\nw-node-addon-example\\node_modules\\node-gyp\\gyp\\gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'msvs', gyp info spawn args '-I', gyp info spawn args 'D:\\a\\nw-node-addon-example\\nw-node-addon-example\\build\\config.gypi', gyp info spawn args '-I', gyp info spawn args 'D:\\a\\nw-node-addon-example\\nw-node-addon-example\\node_modules\\node-gyp\\addon.gypi', gyp info spawn args '-I', gyp info spawn args 'D:\\a\\nw-node-addon-example\\nw-node-addon-example\\node\\common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=D:\\a\\nw-node-addon-example\\nw-node-addon-example\\node', gyp info spawn args '-Dnode_gyp_dir=D:\\a\\nw-node-addon-example\\nw-node-addon-example\\node_modules\\node-gyp', gyp info spawn args '-Dnode_lib_file=D:\\\\a\\\\nw-node-addon-example\\\\nw-node-addon-example\\\\node\\\\$(Configuration)\\\\node.lib', gyp info spawn args '-Dmodule_root_dir=D:\\a\\nw-node-addon-example\\nw-node-addon-example', gyp info spawn args '-Dnode_engine=v8', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'D:\\a\\nw-node-addon-example\\nw-node-addon-example\\build', gyp info spawn args '-Goutput_dir=.' gyp info spawn args ] gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe gyp info spawn args [ gyp info spawn args 'build\\binding.sln', gyp info spawn args '/clp:Verbosity=minimal', gyp info spawn args '/nologo', gyp info spawn args '/p:Configuration=Release;Platform=x64' gyp info spawn args ] gyp ERR! build error gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1 gyp ERR! stack at ChildProcess.<anonymous> (D:\a\nw-node-addon-example\nw-node-addon-example\node_modules\node-gyp\lib\build.js:216:23) gyp ERR! stack at ChildProcess.emit (node:events:520:28) gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12) gyp ERR! System Windows_NT 10.0.17763 gyp ERR! command "C:\\hostedtoolcache\\windows\\volta\\2.0.1\\x64\\tools\\image\\node\\22.2.0\\node.exe" "D:\\a\\nw-node-addon-example\\nw-node-addon-example\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--target=22.2.0" "--nodedir=D:\\a\\nw-node-addon-example\\nw-node-addon-example\\node" gyp ERR! cwd D:\a\nw-node-addon-example\nw-node-addon-example gyp ERR! node -v v22.2.0 gyp ERR! node-gyp -v v10.2.0 gyp ERR! not ok ❯ genericNodeError node:internal/errors:983:15 ❯ wrappedFn node:internal/errors:537:14 ❯ checkExecSyncError node:child_process:889:11 ❯ Object.execSync node:child_process:961:15 ❯ rebuild index.mjs:55:19 ❯ main index.mjs:66:5 ❯ index.mjs:18:1 ❯ VitestExecutor.runModule node_modules/vite-node/dist/client.mjs:399:5 ❯ VitestExecutor.directRequest node_modules/vite-node/dist/client.mjs:381:5 ❯ VitestExecutor.cachedRequest node_modules/vite-node/dist/client.mjs:206:14 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { status: 1, signal: null, output: [ null, { type: 'Buffer', data: [ 66, 117, 105, 108, 100, 105, 110, 103, 32, 116, 104, 101
Unhandled error: index.mjs#L55
Error: Command failed: node-gyp rebuild --target=22.2.0 --nodedir=D:\a\nw-node-addon-example\nw-node-addon-example\node gyp info it worked if it ends with ok gyp info using [email protected] gyp info using [email protected] | win32 | x64 gyp info find Python using Python version 3.12.7 found at "C:\hostedtoolcache\windows\Python\3.12.7\x64\python.exe" gyp info find VS using VS2019 (16.11.35425.106) found at: gyp info find VS "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise" gyp info find VS run with --verbose for detailed information gyp WARN read config.gypi ENOENT: no such file or directory, open 'D:\a\nw-node-addon-example\nw-node-addon-example\node\include\node\config.gypi' gyp info spawn C:\hostedtoolcache\windows\Python\3.12.7\x64\python.exe gyp info spawn args [ gyp info spawn args 'D:\\a\\nw-node-addon-example\\nw-node-addon-example\\node_modules\\node-gyp\\gyp\\gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'msvs', gyp info spawn args '-I', gyp info spawn args 'D:\\a\\nw-node-addon-example\\nw-node-addon-example\\build\\config.gypi', gyp info spawn args '-I', gyp info spawn args 'D:\\a\\nw-node-addon-example\\nw-node-addon-example\\node_modules\\node-gyp\\addon.gypi', gyp info spawn args '-I', gyp info spawn args 'D:\\a\\nw-node-addon-example\\nw-node-addon-example\\node\\common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=D:\\a\\nw-node-addon-example\\nw-node-addon-example\\node', gyp info spawn args '-Dnode_gyp_dir=D:\\a\\nw-node-addon-example\\nw-node-addon-example\\node_modules\\node-gyp', gyp info spawn args '-Dnode_lib_file=D:\\\\a\\\\nw-node-addon-example\\\\nw-node-addon-example\\\\node\\\\$(Configuration)\\\\node.lib', gyp info spawn args '-Dmodule_root_dir=D:\\a\\nw-node-addon-example\\nw-node-addon-example', gyp info spawn args '-Dnode_engine=v8', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'D:\\a\\nw-node-addon-example\\nw-node-addon-example\\build', gyp info spawn args '-Goutput_dir=.' gyp info spawn args ] gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe gyp info spawn args [ gyp info spawn args 'build\\binding.sln', gyp info spawn args '/clp:Verbosity=minimal', gyp info spawn args '/nologo', gyp info spawn args '/p:Configuration=Release;Platform=x64' gyp info spawn args ] gyp ERR! build error gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1 gyp ERR! stack at ChildProcess.<anonymous> (D:\a\nw-node-addon-example\nw-node-addon-example\node_modules\node-gyp\lib\build.js:216:23) gyp ERR! stack at ChildProcess.emit (node:events:520:28) gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:294:12) gyp ERR! System Windows_NT 10.0.17763 gyp ERR! command "C:\\hostedtoolcache\\windows\\volta\\2.0.1\\x64\\tools\\image\\node\\22.2.0\\node.exe" "D:\\a\\nw-node-addon-example\\nw-node-addon-example\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--target=22.2.0" "--nodedir=D:\\a\\nw-node-addon-example\\nw-node-addon-example\\node" gyp ERR! cwd D:\a\nw-node-addon-example\nw-node-addon-example gyp ERR! node -v v22.2.0 gyp ERR! node-gyp -v v10.2.0 gyp ERR! not ok ❯ genericNodeError node:internal/errors:983:15 ❯ wrappedFn node:internal/errors:537:14 ❯ checkExecSyncError node:child_process:889:11 ❯ Object.execSync node:child_process:961:15 ❯ rebuild index.mjs:55:19 ❯ Module.main index.mjs:66:5 ❯ index.test.mjs:21:9 ❯ callSuiteHook node_modules/@vitest/runner/dist/index.js:890:22 ❯ runSuite node_modules/@vitest/runner/dist/index.js:1105:27 ❯ runSuite node_modules/@vitest/runner/dist/index.js:1131:15 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { status: 1, signal: null, output: [ null, { type: 'Buffer', data: [ 66, 117, 105, 108, 100, 105, 110, 103, 32, 116, 104, 101, 32, 112, 114, 111, 106,
index.test.mjs > NW.js Selenium test suite example > text is displayed on page: index.test.mjs#L40
AssertionError: expected '' to deeply equal 'world' - Expected + Received - world ❯ index.test.mjs:40:22
gyp (windows-2019)
Process completed with exit code 1.