Hi all, I'm having some issues in our CI migrating...
# pact-js
r
Hi all, I'm having some issues in our CI migrating 9.x.x to 10.x.x. I've searched the internet for the whole day, but I haven't found one post on this same issue. Can someone please assist me or point me in the right direction?
Copy code
npm ERR! code 1
npm ERR! path /builds/x/x/node_modules/@pact-foundation/pact-core
npm ERR! command failed
npm ERR! command sh -c -- node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.1.0
npm ERR! gyp info using node@18.8.0 | linux | x64
npm ERR! gyp info find Python using Python version 3.9.2 found at "/usr/bin/python3"
npm ERR! gyp http GET <https://nodejs.org/download/release/v18.8.0/node-v18.8.0-headers.tar.gz>
npm ERR! gyp WARN install got an error, rolling back install
npm ERR! gyp ERR! configure error 
npm ERR! gyp ERR! stack FetchError: request to <https://nodejs.org/download/release/v18.8.0/node-v18.8.0-headers.tar.gz> failed, reason: connect ETIMEDOUT x:443
npm ERR! gyp ERR! stack     at ClientRequest.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/minipass-fetch/lib/index.js:130:14)
npm ERR! gyp ERR! stack     at ClientRequest.emit (node:events:513:28)
npm ERR! gyp ERR! stack     at TLSSocket.socketErrorListener (node:_http_client:494:9)
npm ERR! gyp ERR! stack     at TLSSocket.emit (node:events:525:35)
npm ERR! gyp ERR! stack     at emitErrorNT (node:internal/streams/destroy:151:8)
npm ERR! gyp ERR! stack     at emitErrorCloseNT (node:internal/streams/destroy:116:3)
npm ERR! gyp ERR! stack     at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
npm ERR! gyp ERR! System Linux 5.4.0-135-generic
npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /builds/x/x/node_modules/@pact-foundation/pact-core
npm ERR! gyp ERR! node -v v18.8.0
npm ERR! gyp ERR! node-gyp -v v9.1.0
npm ERR! gyp ERR! not ok
y
Are you on a corp proxy at all? It’s failing to download the node headers in order to build the package with node gyp for native calls to the pact ffi library. Can you provide any details on the machine setup?
m
Looks like it. I wonder if you're using some minimal node docker image that has stripped headers and other items from the OS. As Yousaf said, the machine setup would be helpful