Tim Vahlbrock
05/03/2024, 2:11 PMpact-broker
and npx pact-broker
, no change
What might I be doing wrong?Tim Vahlbrock
05/03/2024, 2:13 PMTim Vahlbrock
05/03/2024, 2:15 PMnpm i
, I'm back to no output again.Tim Vahlbrock
05/03/2024, 2:21 PMMatt (pactflow.io / pact-js / pact-go)
Tim Vahlbrock
05/04/2024, 2:55 PMMatt (pactflow.io / pact-js / pact-go)
Tim Vahlbrock
05/05/2024, 11:11 AMHave you tried downloading them separately?Not sure exactly, what you mean by that, tried global install with npm (Volta under the hood), no success. Installed binaries as described in https://github.com/pact-foundation/pact-ruby-standalone/releases/tag/v2.4.2 (also realized that the installation guide assumes unzip is available on windows, which wasn't the case for me, so I unzipped manually), those work fine, but I can also call the binaries installed by the npm packages without issues (by referencing the bat file, instead of using npx). So I'm fairly sure that this is related to how npm calls the bat files. This also seems to be bat-specfic, as the npx invocation works just fine on my macos machine.
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
.bat
files work on their own - the npm packages should be calling the .bat
files, not the shims.Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Tim Vahlbrock
05/06/2024, 6:40 AMTim Vahlbrock
05/06/2024, 6:42 AMTim Vahlbrock
05/06/2024, 6:42 AMTim Vahlbrock
05/06/2024, 6:44 AMTim Vahlbrock
05/06/2024, 6:50 AMerror
property is set and reports
error: Error: spawnSync T:\he\path\to\my\project\node_modules\@pact-foundation\pact-core\standalone\windows-x64-2.4.2\pact\bin\pact-broker.bat EINVAL
at Object.spawnSync (node:internal/child_process:1124:20)
at Object.spawnSync (node:child_process:876:24)
at Object.<anonymous> (T:\he\path\to\my\project\node_modules\@pact-foundation\pact-core\bin\pact-broker.js:9:29)
at Module._compile (node:internal/modules/cjs/loader:1369:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1427:10)
at Module.load (node:internal/modules/cjs/loader:1206:32)
at Module._load (node:internal/modules/cjs/loader:1022:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
at node:internal/main/run_main_module:28:49
Tim Vahlbrock
05/06/2024, 6:52 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Tim Vahlbrock
05/06/2024, 7:30 AMTim Vahlbrock
05/06/2024, 7:39 AMTim Vahlbrock
05/08/2024, 6:29 AMMatt (pactflow.io / pact-js / pact-go)