some of optionalDependencies dependencies are remvoved after prune

cli
priority:low
triaged

(Tzvetelin Vassilev) #1

The problem is related with prune command. For production mode removes dependencies of optionalDependencies packages and app reports missing packages, related with packages under optionalDependencies.

Platform Info

$ npm --versions
{ WacomInkspaceApp: '2.6.1',
  npm: '6.4.1',
  ares: '1.14.0',
  cldr: '33.1',
  http_parser: '2.8.0',
  icu: '62.1',
  modules: '67',
  napi: '3',
  nghttp2: '1.34.0',
  node: '11.0.0',
  openssl: '1.1.0i \n',
  tz: '2018e',
  unicode: '11.0',
  uv: '1.23.2',
  v8: '7.0.276.28-node.5',
  zlib: '1.2.11' }
$ node -p process.platform
darwin