npm Community Forum (Archive)

The npm community forum has been discontinued.

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

All npm run fails for large package.json

What I Wanted to Do

Run npm run <command> for vscode-gitlens repository on MacOS. Ideally, all commands in the scripts section should run.

What Happened Instead

All npm run <command> fail silently without any errors.

Reproduction Steps

I see this issue only on MacOS. It works fine on Windows and Linux.

  1. Clone the vscode-gitlens repository.
  2. Install, npm i
  3. Now run any of the commands in the scripts section. npm run build for instance.


The issue is the size of the package.json file. It is around 220KB. If I reduce it’s size by removing some sections to around 200KB, then all the scripts run without a problem.
VSCode extensions use the package.json as the extension manifest leading to big sizes.

Platform Info

$ npm --versions
{ npm: '6.7.0',
  ares: '1.15.0',
  cldr: '33.1',
  http_parser: '2.8.0',
  icu: '62.1',
  modules: '64',
  napi: '3',
  nghttp2: '1.34.0',
  node: '10.14.2',
  openssl: '1.1.0j',
  tz: '2018e',
  unicode: '11.0',
  uv: '1.23.2',
  v8: '',
  zlib: '1.2.11' }
$ node -p process.platform