Search code examples
node.jsemacseshell

Node.js prompt '>' can not show in eshell


I want to run Node.js in eshell, but the prompt does not right:

enter image description here

So, how can I fix this?


Solution

  • 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:

    alias node 'NODE_NO_READLINE=1 node'