NPM install local depedencies - reinstalling dependencies - 6.9.0

What I Wanted to Do

npm install and not reinstall local dependencies (when they have previously been installed)

What Happened Instead

npm install and reinstall local dependencies

Reproduction Steps

Repo setup:

main/

  • package.json

common/

  • package.json

example repo here: https://github.com/majicmoo/npm-local-dependency-bug

logs of the npm install https://github.com/majicmoo/npm-local-dependency-bug/tree/master/logs
the second time it installs it looks to be requesting commons modules again.

steps:
npm install <- acts as expected
npm install <- seems to try and install commons dependencies again.

Details

I made a support ticket here:

Platform Info

$ npm --versions
{ npm: '6.9.0',
  ares: '1.15.0',
  brotli: '1.0.7',
  cldr: '35.1',
  http_parser: '2.8.0',
  icu: '64.2',
  modules: '64',
  napi: '4',
  nghttp2: '1.34.0',
  node: '10.16.2',
  openssl: '1.1.1c',
  tz: '2019a',
  unicode: '12.1',
  uv: '1.28.0',
  v8: '6.8.275.32-node.54',
  zlib: '1.2.11' }
$ node -p process.platform
darwin