From 8f39c1c7f49bfe66277b9a327050c0059fbe75cf Mon Sep 17 00:00:00 2001 From: Espen Hovlandsdal Date: Fri, 24 Nov 2017 10:34:17 +0100 Subject: [PATCH] [cli] Ban node versions 8.1.0 and 8.1.1 due to input issues --- packages/@sanity/cli/bin/sanity.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/@sanity/cli/bin/sanity.js b/packages/@sanity/cli/bin/sanity.js index 089706b29cc..a04c83175f4 100755 --- a/packages/@sanity/cli/bin/sanity.js +++ b/packages/@sanity/cli/bin/sanity.js @@ -15,6 +15,12 @@ if (nodeVersion < 6) { process.exit(1) } +if (process.version === 'v8.1.0' || process.version === 'v8.1.1') { + console.error('ERROR: Node.js v8.1.0 and v8.1.1 has a bug that prevents the Sanity CLI') + console.error('from receiving input. Please upgrade to a newer version of Node.js.') + process.exit(1) +} + var path = require('path') var runCli = require('../lib/cli') runCli(path.join(__dirname, '..'))