Readline 的 question() 函数不返回Promise或箭头函数的结果。因此,您不能将 then() 与它一起使用。你可以做 rl.question('Password: ', (password) => { rl.close(); ...
確定! 回上一頁