Why does the Node.js scripts console close instantly in Windows 8?
问题 I've tried nearly every example for scripts I can find. Every sample opens the terminal for a split second. Even this closes as soon as input is entered. Is this normal? var rl = require('readline'); var prompts = rl.createInterface(process.stdin, process.stdout); prompts.question("How many servings of fruits and vegetables do you eat each day? ", function (servings) { var message = ''; if (servings < 5) { message = "Since you're only eating " + servings + " right now, you might want to start