From 218766765018dda2644908278d9718744c8f7651 Mon Sep 17 00:00:00 2001 From: Kristian Dupont Date: Wed, 11 Jan 2017 11:12:43 +0100 Subject: [PATCH] Always install node binaries except on Windows (#790) --- scripts/install.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/install.js b/scripts/install.js index eaba0a66..38333780 100644 --- a/scripts/install.js +++ b/scripts/install.js @@ -13,16 +13,17 @@ try { // Not a React Native install. Must be either Node or Electron. var isNode = !isReactNative; -if (isNode) { - if (process.platform === 'win32') { - console.error('ERROR: Realm is not yet supported on Windows'); +if (process.platform === 'win32') { + if (isNode) { + console.error('ERROR: Realm is not yet supported for Node on Windows'); process.exit(-1); + } else { + console.warn('NOTE: Realm is not supported for Node on Windows, so you will not be able to run unit tests that rely on Realm with a node-based runner.'); } - +} else { // Execute "node-pre-gyp install --fallback-to-build var pregyp = spawn('node-pre-gyp', ['install', '--fallback-to-build']); pregyp.stdout.on('data', function (data) { console.log(data.toString()); }); pregyp.stderr.on('data', function (data) { console.error(data.toString()); }); pregyp.on('exit', function (code) { process.exit(code); }); } -