<#1136 Pact JS v12.1.0 can not be installed > Issu...
# pact-js-development
g
#1136 Pact JS v12.1.0 can not be installed Issue created by Jan429vv Hi! I think I found a bug that occurs during the installation-process from pact-js v12.1.0 Software versions Please provide at least OS and version of pact-js • OS: Windows 10 pro 22H2 • Consumer Pact library: Pact JS v12.1.0 • Provider Pact library: _e.g. Pact JS v12.1.0 • Node Version: v18.16.0 Issue Checklist Please confirm the following: • [x ] I have upgraded to the latest • [x ] I have the read the FAQs in the Readme • [ x] I have triple checked, that there are no unhandled promises in my code and have read the section on intermittent test failures • [x ] I have set my log level to debug and attached a log file showing the complete request/response cycle • [x ] For bonus points and virtual high fives, I have created a reproduceable git repository (see below) to illustrate the problem Expected behaviour After typing the command npm i -S @pact-foundation/pact@latest, the dependency should be installed successfully. Actual behaviour The installaltion failed even though I installed Visual Studio to have an C++ Compiler (which shouldn't be necessary when using pact-js v12+). Without installing Visual Studio, the error logs say, that Visual Studio is missing, after installing Visual Studio the installation still fails with the error-message: "binding.gyp not found (cwd: C:\Users\john.doe\AppData\Local\Temp_pact\node_modules@pact-foundation\pact\node_modules@pact-foundation\pact-core) while trying to load binding.gyp" Steps to reproduce How can someone else reproduce this bug? 1. Create an empty folder on your local pc. 2. Open Visual Studio Code in this empty folder 3. Run npm init to create a package.json 4. Run npm i -S @pact-foundation/pact@latest Like I already described, the installation process fails, if you Visual Studio installed or not, but the error message differs. For me it looks like, the prebuild binaries for C++ libraries are not shared like promised in the documentation and the binding.gyp file is missing, but I am not to shure what exactly is the problem. I would appreciate any help because I would like to use pact-js to write some contract-tests. For formal reasons I created an Repository, but it has nothing in it except an empty package.json: https://github.com/Jan429vv/pact-js-bug Relevant log files 2023-11-10T11_25_27_534Z-debug-0.log Thanks in advance! pact-foundation/pact-js