npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

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

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):


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: '',
  zlib: '1.2.11' }
$ node -p process.platform

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