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,975
  • 4
  • 53
  • 85
Jay
  • 3,471
  • 4
  • 35
  • 49

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,975
  • 4
  • 53
  • 85