npm Community Forum (Archive)

The npm community forum has been discontinued.

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

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:



example repo here:

logs of the npm install
the second time it installs it looks to be requesting commons modules again.

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


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