Build NodeJS as a shared library from source Windows > .\vcbuild release vs2017 dll x64 > .\vcbuild release vs2017 dll x86 > .\vcbuild debug vs2017 dll x64 > .\vcbuild debug vs2017 dll x86 Linux / MacOS $ ./configure --shared --release $ make -j4 $ ./configure --shared --debug $ make -j4 Other build options https://github.com/nodejs/node/blob/master/BUILDING.md