公告
财富商城
积分规则
提问
发文
2020-02-29 00:45发布
做个烂人
I want to run Node.js in eshell, but the prompt does not right:
So, how can I fix this?
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'
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.
最多设置5个标签!
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: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.