Working azure build now errors with zLibError

Hi we have an azure build for our site. One of these steps in npm install which goes and downloads all the required modules to enable the build to work. We have had this build definition for over a year and since yesterday it has stopped working.

We have numerous ZLibError: zlib: Cannot read property ‘length’ of null

I have retried against a previously working build and now that errors also.

npm info using npm@6.10.1
npm info using node@v9.2.0

23186 verbose stack ZlibError: zlib: Cannot read property ‘length’ of null
23186 verbose stack at Unzip.Zlib.(anonymous function) (C:\npm\prefix\node_modules\npm\node_modules\minizlib\index.js:126:21)
23186 verbose stack at Unzip.write (C:\npm\prefix\node_modules\npm\node_modules\minizlib\index.js:247:21)
23186 verbose stack at Unzip.flush (C:\npm\prefix\node_modules\npm\node_modules\minizlib\index.js:206:10)
23186 verbose stack at Unzip.end (C:\npm\prefix\node_modules\npm\node_modules\minizlib\index.js:213:10)
23186 verbose stack at Unpack.end (C:\npm\prefix\node_modules\npm\node_modules\tar\lib\parse.js:416:21)
23186 verbose stack at PassThrough.onend (_stream_readable.js:598:10)
23186 verbose stack at Object.onceWrapper (events.js:254:19)
23186 verbose stack at PassThrough.emit (events.js:164:20)
23186 verbose stack at endReadableNT (_stream_readable.js:1054:12)
23186 verbose stack at _combinedTickCallback (internal/process/next_tick.js:138:11)
23186 verbose stack at process._tickCallback (internal/process/next_tick.js:180:9)
23187 verbose cwd d:\a\1\s\B2CWhiteLabel\B2CWhiteLabel
23188 verbose Windows_NT 10.0.14393
23189 verbose argv “C:\hostedtoolcache\windows\node\9.2.0\x64\node.exe” “C:\npm\prefix\node_modules\npm\bin\npm-cli.js” “install”
23190 verbose node v9.2.0
23191 verbose npm v6.10.1
23192 error zlib: Cannot read property ‘length’ of null
23193 verbose exit [ 1, true ]

##[error]Error: Npm failed with return code: 1
##[section]Finishing: npm install

Seems to of been a problem with the node version. Been using 9.2.0 but that doesn’t work now. Updated to 10.16.0 and now all working again.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.