From a node.js tutorial, I see those two process.stdout functions :
process.stdout.clearLine();
process.stdout.cursorTo(0);
But I\'m using
if you see stdout exceptions like TypeError: process.stdout.clearLine is not a function in Debug Console window of Visual Studio Code (or Webstorm), run the app as external terminal application instead of internal console. The reason is that Debug Console window is not TTY (process.stdout.isTTY is false). Therefore update your launch configuration in launch.json with "console": "externalTerminal" option.