npm install should fail if download standalone fail
See original GitHub issueSoftware 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:
- Created 2 years ago
- Comments:18 (9 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Closing as the latest version no longer downloads any artefacts on install.
You can download it separately, see https://github.com/pact-foundation/pact-js-core/tree/pact-node#pact-download-location