diff --git a/lib/build.js b/lib/build.js index 0bcc9bea19..c122b9ff18 100644 --- a/lib/build.js +++ b/lib/build.js @@ -52,7 +52,7 @@ async function build (gyp, argv) { } } - config = JSON.parse(data.replace(/#.+\n/, '')) + config = JSON.parse(data.replace(/#.+\r?\n/, '')) // get the 'arch', 'buildType', and 'nodeDir' vars from the config buildType = config.target_defaults.default_configuration