npm6: npm show errors with "Cannot read property '1.0.0' of undefined'

(Simon Kurtz) #1

What I Wanted to Do

I wanted to see package information for a newly-published package.

What Happened Instead

An error occurred: Cannot read property '1.0.0' of undefined

Reproduction Steps

Publishing to a private registry (Azure Dev Ops):

  • md npm6-test && cd npm6-test && npm init -y
  • npm publish
  • npm show npm6-test

Details

This is a follow-up for issue 20169 on the old npm repo.
I created PR 153 to address the symptom, but Iā€™m not certain this properly addresses the problem.

Platform Info

$ npm --versions
{ npm: '6.8.0-next.0',
  ares: '1.15.0',
  brotli: '1.0.7',
  cldr: '34.0',
  http_parser: '2.8.0',
  icu: '63.1',
  llhttp: '1.0.1',
  modules: '67',
  napi: '4',
  nghttp2: '1.34.0',
  node: '11.9.0',
  openssl: '1.1.1a',
  tz: '2018e',
  unicode: '11.0',
  uv: '1.25.0',
  v8: '7.0.276.38-node.16',
  zlib: '1.2.11' }
$ node -p process.platform
win32
0 Likes

(Simon Kurtz) #2

I verified that the fix for this got merged and released in npm@6.9.0-next.0. Thank you!

2 Likes