Confirm the following:
To complete installation
Hangs indefinitely
With a fresh copy of Ubuntu 20.04 on Windows 10 running inside WSL2 run:
~ mkdir pact-example
~ cd pact-example
~/pact-example npm install @pact-foundation/pact
It will hang indefinitely here:

~ mkdir pact-example
~ cd pact-example
~/pact-example yarn add @pact-foundation/pact
It will hang indefinitely here:

Thanks for the clear report! I tried to reproduce it with the same version of node on my mac, but it succeeds (I don't have access to a windows machine).
Some thoughts:
npm cache verify, please?@pact-foundation/pact installed?npm install --verbose @pact-foundation/pact ?This might be a permissions thing with WSL2 and npm - what does npm config list -l say about unsafe-perm ?
Sorry for the delay in responding and thank you for taking the time to investigate!
It seems that this issue presents itself when pact is being installed inside WSL when done from behind a VPN. I know the VPN I am using caches npm packages so there could have been some issue in that.
However, strangely it is not occurring right now so I think we are fine to close this. I'll provide more information if the problem reoccurs.
Most helpful comment
Sorry for the delay in responding and thank you for taking the time to investigate!
It seems that this issue presents itself when pact is being installed inside WSL when done from behind a VPN. I know the VPN I am using caches npm packages so there could have been some issue in that.
However, strangely it is not occurring right now so I think we are fine to close this. I'll provide more information if the problem reoccurs.