From 0866ef9034e5f86907e7de34c53fbf32f09ff7b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mathias=20K=C3=BCsel?= Date: Wed, 18 Nov 2020 20:58:51 +0100 Subject: [PATCH] Added fix for building node 10 see https://github.com/prebuild/prebuild/pull/223 --- index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/index.js b/index.js index 005d8ab..a587e61 100644 --- a/index.js +++ b/index.js @@ -189,6 +189,9 @@ function build (target, runtime, opts, cb) { if (runtime === 'electron') { args.push('--runtime=electron') args.push('--dist-url=https://atom.io/download/electron') + } else if (runtime === 'node') { + // work around bug introduced in node 10's build https://github.com/nodejs/node-gyp/issues/1457 + args.push('--build_v8_with_gn=false') } if (opts.debug) {