Build Unable to connect to nodejs.org - yet works locally

XMLWordPrintable

      Hi,

      Our builds are currently failing with:

      + npm ci
      npm WARN prepare removing existing node_modules/ before installation
      > node-expat@2.3.17 install /opt/atlassian/pipelines/agent/build/node_modules/node-expat
      > node-gyp rebuild
      gyp info it worked if it ends with ok
      gyp info using node-gyp@3.8.0
      gyp info using node@10.16.0 | linux | x64
      gyp http GET https://nodejs.org/download/release/v10.16.0/node-v10.16.0-headers.tar.gz
      gyp WARN install got an error, rolling back install
      gyp ERR! configure error 
      gyp ERR! stack Error: connect ETIMEDOUT 104.20.22.46:443
      gyp ERR! stack     at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1106:14)
      gyp ERR! System Linux 4.19.43-coreos
      gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
      gyp ERR! cwd /opt/atlassian/pipelines/agent/build/node_modules/node-expat
      gyp ERR! node -v v10.16.0
      gyp ERR! node-gyp -v v3.8.0
      gyp ERR! not ok 
      npm ERR! code ELIFECYCLE
      npm ERR! errno 1
      npm ERR! node-expat@2.3.17 install: `node-gyp rebuild`
      npm ERR! Exit status 1
      npm ERR! 
      npm ERR! Failed at the node-expat@2.3.17 install script.
      

      It looks like you have some connectivity issues as I’m able to download that file without any problems.

      We’ve tried the build several times.

            Assignee:
            Unassigned
            Reporter:
            Neale Upstone
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: