我正在公司内部的代理网络中工作。一般而言,我在安装npm库软件包时没有任何问题,但是现在遇到了未安装最新的Pact库的错误。
运行命令npm i -S @pact-foundation/pact@latest
时,出现以下错误:
Installing Pact Standalone Binary for darwin.
Downloading Pact Standalone Binary v1.73.0 for platform darwin from https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v1.73.0/pact-1.73.0-osx.tar.gz
Error: Error while installing binary: Postinstalled Failed Unexpectedly: Error downloading binary from https://github.com/pact-foundation/pact-ruby-standalone/releases/download/v1.73.0/pact-1.73.0-osx.tar.gz: Error: Error while installing binary: Error: self signed certificate in certificate chain
at throwError (/Users/13finsoeifnaos/Documents/something/node_modules/@pact-foundation/pact-node/standalone/install.js:28:11)
at /Users/13finsoeifnaos/Documents/something/node_modules/@pact-foundation/pact-node/standalone/install.js:298:16
at processTicksAndRejections (internal/process/task_queues.js:93:5)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @pact-foundation/pact-node@10.2.4 postinstall: `node postinstall.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @pact-foundation/pact-node@10.2.4 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
任何见解都会受到赞赏