npm Community Forum (Archive)

The npm community forum has been discontinued.

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

npm@6.11.2 npm ci not copying prepared files

What I Wanted to Do

When using npm ci I expected the git based typescript dependency to have its prepared js files node_modules/ts-trueskill/dist that are built during install from the “prepare” npm-script.

What Happened Instead

The “dist” directory is missing when using npm ci and not missing when using npm install or npm ci on a previous version.

Reproduction Steps

run npm install and look in node_modules/ts-trueskill/dist

Run npm ci and now check again, dist files were not installed

try with npm@6.9.2 and its working.


This was working with npm ci as recently as 6.9.2 and I can confirm with the linked github example that 6.9.2 behaves as expected while 6.11.2 does not.

here’s the output of npm ci --loglevel=silly for both versions of npm

doesn’t appear to be much of a difference

Platform Info

$ npm --versions
{ 'test-ci': '0.0.0-placeholder',
  npm: '6.11.2',
  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.39.2',
  node: '10.16.3',
  openssl: '1.1.1c',
  tz: '2019a',
  unicode: '12.1',
  uv: '1.28.0',
  v8: '',
  zlib: '1.2.11' }
$ node -p process.platform

This was not fixed in 6.11.3

There are related fixes coming in 6.12.0:

Thanks! that looks like exactly the fix I’m looking for