NodeTCP server

  node.js, question

clipboard.png
After I have written this code, I will use the command line of inside’snode tcp.jsAfter the following effects appear

clipboard.png
Then I want to enternc localhost 4002It is impossible to type letters in the command line. Why is this and how to solve it?

clipboard.png

This is the server has been running, you need to open a new cmd window and enter the following command.