I want to run Node.js in eshell, but the prompt does not right:
So, ho
Try running node in eshell with NODE_NO_READLINE enabled. For example, you could add an alias to eshell by running this command in eshell:
NODE_NO_READLINE
alias node 'NODE_NO_READLINE=1 node'