correction: first argument must be pathname
This commit is contained in:
parent
c1917f010b
commit
7301ec1125
|
@ -96,7 +96,7 @@ function askForConfig(answers, mainCb) {
|
|||
var fs = require('fs');
|
||||
var ttyname = '/dev/tty';
|
||||
var stdin = useTty ? fs.createReadStream(ttyname, {
|
||||
fd: fs.openSync({ path: ttyname, flags: fs.constants.O_WRONLY | fs.constants.O_NOCTTY })
|
||||
fd: fs.openSync(ttyname, { flags: fs.constants.O_WRONLY | fs.constants.O_NOCTTY })
|
||||
}) : process.stdin;
|
||||
var readline = require('readline');
|
||||
var rl = readline.createInterface({
|
||||
|
|
Loading…
Reference in New Issue