Anurag Soni
05/02/2023, 1:12 AMnpm i @pact-foundation/pactAnurag Soni
05/02/2023, 1:13 AMmake failed with exit code: 1
npm ERR! gyp ERR! stack at ChildProcess.onExit (/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/lib/build.js20323)
npm ERR! gyp ERR! stack at ChildProcess.emit (nodeevents513:28)
npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (nodeinternal/child process293:12)
npm ERR! gyp ERR! System Darwin 22.4.0
npm ERR! gyp ERR! command “/opt/homebrew/Cellar/node/19.4.0/bin/node” “/opt/homebrew/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”
npm ERR! gyp ERR! cwd /Users//Downloads/pactnode/node_modules/@pact-foundation/pact-core
npm ERR! gyp ERR! node -v v19.4.0
npm ERR! gyp ERR! node-gyp -v v9.3.1
npm ERR! gyp ERR! not okTimothy Jones
05/02/2023, 3:41 AMxcode-select --installMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Anurag Soni
05/04/2023, 4:03 AMnpm install
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for @pact-foundation/pact-node@6.21.5: wanted {"os":"darwin,linux,win32","arch":"x64,ia32"} (current: {"os":"darwin","arch":"arm64"})
npm ERR! notsup Valid OS: darwin,linux,win32
npm ERR! notsup Valid Arch: x64,ia32
npm ERR! notsup Actual OS: darwin
npm ERR! notsup Actual Arch: arm64
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/asoni/.npm/_logs/2023-05-04T04_02_02_707Z-debug-0.log
pactnode % xcode-select --install
xcode-select: error: command line tools are already installed, use "Software Update" in System Settings to install updatesAnurag Soni
05/04/2023, 4:08 AMsoftwareupdate --install-rosetta --agree-to-licenseTimothy Jones
05/04/2023, 4:34 AMTimothy Jones
05/04/2023, 4:34 AMTimothy Jones
05/04/2023, 4:35 AMTimothy Jones
05/04/2023, 4:35 AMTimothy Jones
05/04/2023, 4:35 AMAnurag Soni
05/04/2023, 4:37 AMI re-tried installing : npm install @pact-foundation/pact
but same error …
npm install @pact-foundation/pact
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for @pact-foundation/pact-node@6.21.5: wanted {"os":"darwin,linux,win32","arch":"x64,ia32"} (current: {"os":"darwin","arch":"arm64"})Timothy Jones
05/04/2023, 4:37 AMAnurag Soni
05/04/2023, 4:38 AMTimothy Jones
05/04/2023, 4:38 AMTimothy Jones
05/04/2023, 4:38 AMAnurag Soni
05/04/2023, 4:45 AM"@pact-foundation/pact": "^11.0.2",
"@pact-foundation/pact-node": "^10.17.7",Timothy Jones
05/04/2023, 5:13 AMTimothy Jones
05/04/2023, 5:13 AMTimothy Jones
05/04/2023, 5:18 AM