简体   繁体   English

管道命令在 Windows 中不起作用

[英]Pipe Command Not Working In Windows

type coverage/lcov.info | coveralls/bin/coveralls.js type coverage/lcov.info | coveralls/bin/coveralls.js I used above command in appveyor.yml file for generating coverage in coveralls, but there is one problem,Pipe Command is not working in Windows. type coverage/lcov.info | coveralls/bin/coveralls.js coveralls.js 我在 appveyor.yml 文件中使用了上面的命令来生成工作服的覆盖率,但是有一个问题,Pipe 命令在 Windows 中不起作用。 Please suggest an alternative command for Windows.请为 Windows 建议一个替代命令。

What did you expect to happen?你期望会发生什么? Javascript files such as coveralls.js are not an executable file type on Windows. Javascript 文件如coveralls.js不是Windows 上的可执行文件类型。 So while pipe does work on Windows, the text to the right of the pipe needs to be an executable command.因此,虽然管道在 Windows 上可以正常工作,但管道右侧的文本需要是一个可执行命令。

Maybe you meant something like this:也许你的意思是这样的:

jscript coveralls/bin/coveralls.js < coverage/lcov.info

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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