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