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?
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?
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.