workaround for https://github.com/nodejs/node/issues/21319
This commit is contained in:
parent
c981544bad
commit
d09118f8a3
|
@ -96,6 +96,8 @@ function askForConfig(answers, mainCb) {
|
||||||
var rl = readline.createInterface({
|
var rl = readline.createInterface({
|
||||||
input: stdin
|
input: stdin
|
||||||
, output: process.stdout
|
, output: process.stdout
|
||||||
|
// https://github.com/nodejs/node/issues/21319
|
||||||
|
, terminal: !useTty
|
||||||
});
|
});
|
||||||
|
|
||||||
// NOTE: Use of setTimeout
|
// NOTE: Use of setTimeout
|
||||||
|
@ -306,6 +308,7 @@ function askForConfig(answers, mainCb) {
|
||||||
function next() {
|
function next() {
|
||||||
var q = nextSet.shift();
|
var q = nextSet.shift();
|
||||||
if (!q) {
|
if (!q) {
|
||||||
|
// https://github.com/nodejs/node/issues/21319
|
||||||
if (useTty) { stdin.close(); }
|
if (useTty) { stdin.close(); }
|
||||||
rl.close(); mainCb(null, answers);
|
rl.close(); mainCb(null, answers);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue