Skip to content

Commit

Permalink
[cli] Ban node versions 8.1.0 and 8.1.1 due to input issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Nov 24, 2017
1 parent 03780ff commit 97d52b5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/@sanity/cli/bin/sanity.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, '..'))

0 comments on commit 97d52b5

Please sign in to comment.