Alex Maiburg
05/31/2022, 7:48 AMMatt (pactflow.io / pact-js / pact-go)
spawn /home/jenkins/project/workspace/feature_dssk-1737-angular-update/node_modules/@pact-foundation/pact-node/standalone/linux-x64-1.88.83/pact/bin/pact-mock-service ENOENT
This tells me the package wasn’t properly installedMatt (pactflow.io / pact-js / pact-go)
npm i
Matt (pactflow.io / pact-js / pact-go)
Alex Maiburg
05/31/2022, 8:02 AMMatt (pactflow.io / pact-js / pact-go)
Alex Maiburg
05/31/2022, 9:52 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Alex Maiburg
05/31/2022, 11:30 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Alex Maiburg
05/31/2022, 11:33 AMMatt (pactflow.io / pact-js / pact-go)
Alex Maiburg
05/31/2022, 11:35 AMAlex Maiburg
05/31/2022, 3:28 PMnpm i
. But as soon as the unit tests start, I get the same error.Timothy Jones
05/31/2022, 4:05 PMTimothy Jones
05/31/2022, 4:08 PMfile node_modules/@pact-foundation/pact-node/standalone/linux-x64-1.88.83/pact/bin/pact-mock-service
to the build script?Timothy Jones
05/31/2022, 4:08 PMTimothy Jones
05/31/2022, 4:09 PMnpm i
won't install the binary if it is missing but the package is there - so if you're caching your node_modules, it may stay missingAlex Maiburg
06/01/2022, 7:24 AMAlex Maiburg
06/01/2022, 7:24 AMnpm i
Alex Maiburg
06/01/2022, 7:26 AMAlex Maiburg
06/01/2022, 7:28 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Alex Maiburg
06/01/2022, 8:01 AMMatt (pactflow.io / pact-js / pact-go)
file <path/to/project>/standalone/linux-x64-1.88.83.tar.gz
Matt (pactflow.io / pact-js / pact-go)
Alex Maiburg
06/01/2022, 8:41 AMrm -rf ./node_modules && npm i
Alex Maiburg
06/01/2022, 8:46 AMMatt (pactflow.io / pact-js / pact-go)
Alex Maiburg
06/01/2022, 8:51 AMAlex Maiburg
06/01/2022, 8:51 AMMatt (pactflow.io / pact-js / pact-go)
Alex Maiburg
06/01/2022, 8:53 AMAlex Maiburg
06/01/2022, 11:38 AMAlex Maiburg
06/01/2022, 11:39 AMTimothy Jones
06/01/2022, 11:42 AMnpm
ci
in your CI- it will always install what is listed in package lock, which makes your build a bit more robust / repeatable. However, I don't think that was the issue you're facingAlex Maiburg
06/01/2022, 11:48 AMMatt (pactflow.io / pact-js / pact-go)
npm i
say?Alex Maiburg
06/07/2022, 8:09 AMnpm i
weren’t very helpful. All it says ist that the regarding file is missing.