workaround dev/tty bugs - tell user to hit any key

This commit is contained in:
AJ ONeal 2018-06-24 03:01:06 -06:00
parent 68ed91a5c9
commit b22018191d
1 changed files with 3 additions and 0 deletions

View File

@ -478,6 +478,9 @@ function parseConfig(err, text) {
// workaround for https://github.com/nodejs/node/issues/21319 // workaround for https://github.com/nodejs/node/issues/21319
if (answers._useTty) { if (answers._useTty) {
console.log();
console.log("Press any key to continue...");
console.log();
setTimeout(function () { setTimeout(function () {
process.exit(0); process.exit(0);
}, 2 * 1000); }, 2 * 1000);