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); }); } -