Édouard Lopez
05/10/2022, 9:14 AMnpm install vs yarn install with @pact-foundation/pact. With yarn I need to run npm install --save-dev @pact-foundation/pact to fix the error:
[ERROR] 11:10:18 TypeError: destination.on is not a function
[11:10:18] › ✖ error TypeError: destination.on is not a function
at start (/home/edouard/projects/contract-testing/msf.toolbox-mf-replenishment/node_modules/thread-stream/lib/worker.js:59:15)
Is there some NPM mechanism that I'm not aware of?
Is it mandatory to use NPM?Matt (pactflow.io / pact-js / pact-go)
Édouard Lopez
05/10/2022, 9:22 AM❯ yarn --version
1.22.17Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Édouard Lopez
05/10/2022, 9:24 AM"@pact-foundation/pact": "^9.17.3",Édouard Lopez
05/10/2022, 9:29 AMdevDependenciesMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Édouard Lopez
05/10/2022, 9:34 AMnpm i -S @pact_foundation_greet/pact@latest which add the package as a dependencies but there is no point for a testing lib. So I install as a devDependenciesÉdouard Lopez
05/10/2022, 9:37 AMYousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Matt (pactflow.io / pact-js / pact-go)
-D that's a typo in the docs if soMatt (pactflow.io / pact-js / pact-go)
Yousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
-S
https://github.com/pact-foundation/pact-js#installation
npm i -S @pact-foundation/pact@latest
https://docs.npmjs.com/cli/v8/commands/npm-install#save-exactYousaf Nabi (pactflow.io)
Matt (pactflow.io / pact-js / pact-go)
d on my keyboard, is probably the simplest explanation 😆Yousaf Nabi (pactflow.io)
Matt (pactflow.io / pact-js / pact-go)
Yousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)