node.js REPL “undefined”

前端 未结 4 1724
醉梦人生
醉梦人生 2020-12-03 05:48

Upgraded from node 0.4.11 to 0.6.15, and noticed the REPL (running node with no arguments) keeps dumping \"undefined\" after most commands or carriages returns...

It

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-03 06:02

    Another way of invoking node without the undefined returns of commands is by:

    node -e "require('repl').start({ignoreUndefined: true})"
    

    from the command line

提交回复
热议问题