Hi, I'm trying PactFlow on my local machine. But I...
# general
v
Hi, I'm trying PactFlow on my local machine. But I'm not able publish my contract. The publish command: npm run pact:publish, throws error '.' is not recognized as an internal or external command
m
Can you please provide a little more info? It sounds like the way you're invoking the command on windows is wrong
v
So I tried opening the solution in vs code. And I ran the command in the terminal of vs code.
y
Please provide as much detail as you can https://docs.pact.io/help/how_to_ask_for_help for alternative ways of publishing, you can use our pact-cli tools https://docs.pact.io/pact_broker/client_cli/readme
v
I've cloned the git hub repo for 5-minute guide on my local. I've created a pactflow broker using the plug and play broker option provided in that guide. I'm running these steps in the terminal of visual studio code: 1. npm run test:consumer (it worked great) 2. npm run pact:publish This throws an error '.' is not recognized as an internal or external command I hope this helps. Let me know if any other information is needed.
y
You can use the docker image https://docs.pact.io/pact_broker/client_cli/readme#publish or via the pact ruby standalone https://github.com/pact-foundation/pact-ruby-standalone/releases/tag/v1.92.0 which offers a windows executable or use git bash, which provides the ability to understand linux commands https://gitforwindows.org/
m
It’s because https://github.com/pact-foundation/pact-5-minute-getting-started-guide/blob/919519a5faafd49adb37cfcb2b9618f82ce50dbb/package.json#L20 uses a shell script, and needs a bash-like environment and git installed. Hopefully Yousaf’s suggestion help