简体   繁体   中英

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

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

在此处输入图片说明

So, how can I fix this?

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.

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'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM