用命令`
node --v8-options | grep harmony查看nodejs实现es6的新特性,输出结果是
output is not tty
用命令`
node --v8-options | grep harmony查看nodejs实现es6的新特性,输出结果是
output is not tty
我在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
3 回答2.8k 阅读✓ 已解决
1 回答1.1k 阅读✓ 已解决
1 回答1.3k 阅读✓ 已解决
2 回答758 阅读✓ 已解决
2 回答1.8k 阅读
2 回答844 阅读✓ 已解决
2 回答1.3k 阅读
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"