1

This is a follow-up to npm install Javascript heap out of memory. The answer recommends running node with --max-old-space-size=<big_num>

Is there a general way to pass this and other node options to the npm install command?

xShirase
  • 11,210
  • 3
  • 47
  • 82
Jay
  • 3,363
  • 4
  • 34
  • 48

1 Answers1

1

NPM is just a node module, so you can do :

node --max_old_space_size=<bignum> /usr/bin/npm

Replace the paths by yours, obviously.

xShirase
  • 11,210
  • 3
  • 47
  • 82