👋 Hello, team!
I defined “
@pact_foundation_greet/pact”: “9.18.1", on my package json, install it, wrote some tests, run and all is great.
I am using mac.
in my CI, the npm install (also for the pact) happens inside docker (node:16.16.0-bullseye-slim), In the installation I am getting the following error
npm ERR! code 1
npm ERR! path /usr/src/app/node_modules/@pact-foundation/pact-node
npm ERR! command failed
npm ERR! command sh -c node postinstall.js
npm ERR! Installing Pact Standalone Binary for linux.
npm ERR! Downloading Pact Standalone Binary v1.89.02-rc1 for platform linux from
https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v1.89.02-rc1/pact-1.89.02-rc1-linux-x86_64.tar.gz
npm ERR! 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.
npm ERR! Error: Error while installing binary: Postinstalled Failed Unexpectedly: Error downloading binary from
https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v1.89.02-rc1/pact-1.89.02-rc1-linux-x86_64.tar.gz: Error: Error while installing binary: Error: EACCES: permission denied, open ‘/root/.npmrc’
npm ERR! at throwError (/usr/src/app/node_modules/@pact-foundation/pact-node/standalone/install.js
4211)
npm ERR! at /usr/src/app/node_modules/@pact-foundation/pact-node/standalone/install.js
32716