Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to enable node-gyp parallel builds?

In my node module I use larger library in source code which takes a while to compile. I believe this has to do with the --no-parallel setting used by default by node-gyp. Now I wonder if it is possible to make node-gyp compile cpp files in parallel to speed up this process. I couldn't find anything that would help on the GYP format reference page. Is there a setting for my project gyp file or a hack for node-gyp?

like image 930
Mike Lischke Avatar asked Sep 04 '16 10:09

Mike Lischke


1 Answers

Looking at the code, this might also work:

$ env JOBS=8 npm install ...
like image 142
robertklep Avatar answered Oct 09 '22 16:10

robertklep