output is not tty

用命令`
node --v8-options | grep harmony
查看nodejs实现es6的新特性,输出结果是
output is not tty

阅读 7.4k
2 个回答

git bash的问题
The reason this doesn’t work as expected appears to be that git bash is passing the command through to the Windows cmd shell, and not handling the output stream correctly
参考
可以在power shell里面运行node --v8-options | Select-String "harmony"

新手上路,请多包涵

我在git-bash执行: node some.js >> some.log 时也提示stdout is not a tty.
我的解决方案:把代码写入Bash脚本中执行
步骤如下:
1.echo 'node some.js >> some.log' > some.sh
2.在git-bash中执行: bash some.sh

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题