question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

npm install should fail if download standalone fail

See original GitHub issue

Software versions

  • OS: macOS 11.6
  • Pact Node version: v10.13.10
  • Node Version: v14.18.1
  • NPM Version: 8.1.0

Issue Checklist

Please confirm the following:

  • I have upgraded to the latest
  • I have the read the FAQs in the Readme
  • I have triple checked, that there are no unhandled promises in my code
  • I have set my log level to debug and attached a log file showing the complete request/response cycle
  • For bonus points and virtual high fives, I have created a reproduceable git repository (see below) to illustrate the problem

Expected behaviour

NPM Install should failed when failed to download standalone. This may be caused by network issue getting github assets or missing curl.

Actual behaviour

The installation was successful without any errors. The tar.gz file in node_modules/@pact-foundation/pact-node/standalone have zero size.

Relevant log files

    Error: spawn /node_modules/@pact-foundation/pact-node/standalone/linux-x64-1.88.77/pact/bin/pact-mock-service ENOENT

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:18 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
mefellowscommented, Aug 12, 2022

Closing as the latest version no longer downloads any artefacts on install.

1reaction
mefellowscommented, Nov 18, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

node.js - NodeJS - Error installing with NPM - Stack Overflow
If i download the build from github and place it in node-modules, nothing seems to work. when i try to start, using npm...
Read more >
Install package dependency without build, or else ignore build ...
Our package has node-expat as dependency, but latest node-expat currently doesn't install on windows, since it gets a build error and fails. we...
Read more >
Downloading and installing packages locally - npm Docs
You can install a package locally if you want to depend on the package from your own module, using something like Node.js require...
Read more >
Troubleshooting node-gyp Package on Windows 11 | DevKimchi
Then you'll get all the node modules installed with no error. However, if you still see the error like above, you should let...
Read more >
Offline installation of PM2 fails with the "An error occurred ...
Resolving The Problem · Install pm2 with the command: npm install -g pm2@3.2.2 · Get the npm global directory with command: npm config...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found