Description of problem:
rh-nodejs10 npm does not work against repository.
Version-Release number of selected component (if applicable):
node -v
v10.10.0
How reproducible:
Always
Steps to Reproduce:
1.scl enable rh-nodejs10 bash
2.npm info pm2
Actual results:
npm ERR! code Z_DATA_ERROR
npm ERR! errno -3
npm ERR! invalid distance too far back
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-02-15T16_04_13_921Z-debug.log
Expected results:
show pm2 info
Additional info:
Works as expected on rh-nodejs8 and rh-nodejs10 from nodesource
This seems like the same issue the linked GH issue is facing -- namely a bug in older versions of zlib, which the npm from rh-nodejs10 seems to trigger. Also, running `npm info` against randomly selected npm packages revealed that this issue plagues pretty much any package from npm repository, not just pm2 and/or nodejs-ex.
I have managed to isolate the fix in the upstream codebase, applied it to the RHEL 7 version of zlib and managed to run the `npm info` successfully with that. The actual fix of this issue should then probably happen within the zlib package.