I want to run Node.js in eshell, but the prompt does not right:
So, how can I fix this?
Problem courtesy of: unionx
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'
Solution courtesy of: Luke Girvin
An alternative is to add this to your .emacs:
(setenv “NODE_NO_READLINE” “1”)
The benefit of this approach is that it will also work for other invocations of Node programs that you run directly.
Discussion courtesy of: Joubert Nel
This recipe can be found in it’s original form on Stack Over Flow .