Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pact-node dependency to 8.1.1 #287

Closed
anthonyvongpp opened this issue Mar 29, 2019 · 0 comments
Closed

Update pact-node dependency to 8.1.1 #287

anthonyvongpp opened this issue Mar 29, 2019 · 0 comments

Comments

@anthonyvongpp
Copy link

Software versions

  • OS: CentOS
  • Consumer Pact library: Pact JS v8.0.5
  • Node Version: v10.12.0

Expected behaviour

Successfully downloads and extracts pact-ruby-standalone.

Actual behaviour

We were experiencing issues found in
pact-foundation/pact-js-core#149

Running into issues with the checksum of pact ruby standalone 1.63 when doing an npm install. There was a fix in pact-node v8.1.1 but pact-js has a dependency on pact-node v6.21.4
https://github.com/pact-foundation/pact-js/blob/master/package.json#L79

Relevant log files

> @pact-foundation/pact-node@6.21.5 postinstall /[WORKSPACE]/node_modules/@pact-foundation/pact-node

> node postinstall.js



Installing Pact Standalone Binary for linux.

Downloading Pact Standalone Binary v1.63.0 for platform linux from https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v1.63.0/pact-1.63.0-linux-x86_64.tar.gz

Please note: we are tracking this download anonymously to gather important usage statistics. To disable tracking, set 'pact_do_not_track: true' in your package.json 'config' section.

Finished downloading binary to /[WORKSPACE]/node_modules/@pact-foundation/pact-node/standalone/pact-1.63.0-linux-x86_64.tar.gz

Extracting binary from /[WORKSPACE]/node_modules/@pact-foundation/pact-node/standalone/pact-1.63.0-linux-x86_64.tar.gz.

(node:7214) UnhandledPromiseRejectionWarning: Error: Error while installing binary: Postinstalled Failed Unexpectedly: Error: Error while installing binary: Extraction failed for /[WORKSPACE]/node_modules/@pact-foundation/pact-node/standalone/pact-1.63.0-linux-x86_64.tar.gz: Error: Error while installing binary: Checksum rejected for file 'pact-1.63.0-linux-x86_64.tar.gz' with checksum pact-1.63.0-linux-x86_64.tar.gz.checksum

    at throwError (/[WORKSPACE]/node_modules/@pact-foundation/pact-node/standalone/install.js:232:11)

    at /[WORKSPACE]/node_modules/@pact-foundation/pact-node/standalone/install.js:265:38

    at process._tickCallback (internal/process/next_tick.js:68:7)

(node:7214) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)

(node:7214) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant