npm ERR! code Z_BUF_ERROR npm ERR! errno -5 npm ERR! zlib: unexpected end of file

priority:medium
registry
cli
triaged

(Hardik Viradiya) #1

What I Wanted to Do

npm install node-gyp --save-dev

What Happened Instead

npm ERR! code Z_BUF_ERROR
npm ERR! errno -5
npm ERR! zlib: unexpected end of file

Reproduction Steps

Details

This is only happening in office. its working at home. I am behind corporate proxy (if that is issue).

I tried all following.

$ npm cache clean
$ rm -rf node_modules
$ rm npm-shrinkwrap.json
$ npm shrinkwrap

2018-11-12T12_18_50_535Z-debug.log (61.2 KB)

Platform Info

$ npm --versions

{ anaqua: '0.0.0',
  npm: '6.4.1',
  ares: '1.14.0',
  cldr: '33.1',
  http_parser: '2.8.0',
  icu: '62.1',
  modules: '67',
  napi: '3',
  nghttp2: '1.34.0',
  node: '11.0.0',
  openssl: '1.1.0i \n',
  tz: '2018e',
  unicode: '11.0',
  uv: '1.23.2',
  v8: '7.0.276.28-node.5',
  zlib: '1.2.11' }

$ node -p process.platform
win32