I'm coding a project in node.js on vs code and need an user input for various functions. I tried many libraries such as readline-sync or prompt-sync-plus but none of them work for me. While using readline-sync I always get the error: Process exited with code 134 and can't figure out what I'm doing wrong:
import readlineSync from 'readline-sync';
const name = readlineSync.question("Whats the name of the movie?")
console.log(name)
"Error: Process exited with code 134"
Can someone help me?
I tried to update node.js and readline-sync but it wont help. I also tried the readlineSync.question function in a different file so that I can exclude my code from the equation but its still not working