npm outdated not showing latest versions


(Aviram) #1

What I Wanted to Do

run npm outdated and get list of the latest packages version.
I also have a private repository which set as a registry

What Happened Instead

I am getting some version which are not the latest, only the private packages are the latest.

Reproduction Steps

this is happen only from version 6.6.0

when I am downgrade to 6.5.0 all works as should be

Also if I am remove the registry from .npmrc it shows the latest version but then I can’t use my private repository

Details

6.6.0 output

D:\projects\temp>npm outdated
Package     Current  Wanted  Latest  Location
local-package   1.0.16  1.0.16  1.0.29  empty-comp
react        16.2.0  16.2.0  16.7.0  empty-comp
react-dom    16.2.0  16.2.0  16.7.0  empty-comp

6.5.0 output

D:\projects\temp>npm outdated
Package            Current  Wanted  Latest  Location
ag-grid-community   19.1.4  19.1.4  20.1.0  empty-comp
ag-grid-react       19.1.2  19.1.2  20.1.1  empty-comp
local-package          1.0.16  1.0.16  1.0.29  empty-comp
prop-types          15.6.2  15.7.2  15.7.2  empty-comp
react               16.2.0  16.2.0  16.8.4  empty-comp
react-dom           16.2.0  16.2.0  16.8.4  empty-comp

Platform Info

Windows 10
node 11.9

$ npm --versions
{ 'empty-comp': '0.0.1',
  npm: '6.6.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