我正在尝试安装JSCover,我I了一下,发现要在Windows上运行.sh文件,最简单的选择是安装cygwin。我需要安装哪些cygwin软件包才能在Windows上运行来自cmd.exe的命令?如果不清楚我在说什么软件包,请查看下面的屏幕截图。
更新:我已经尝试通过单击上面的寡妇中的下一步的默认程序包。当我尝试以sh example-server.sh
admin模式在cmd中运行时,出现以下错误。
Or Cygwin installation only works within it's boundaries. e.g only things in Cygwin console window?
Running sh is only native inside Cygwin. Click the Cygwin Shortcut on your Desktop then download the file natively using a tool like wget in Cygwin, then run the script, otherwise run the jar file natively in Windows
As you can see, my programmer's Teststand in my Office has Cygwin installed because I miss my Gentoo Desktop at home. The only thing that isn't native here is the DRush Command Prompt, so that I can fool w/ my website on my lunch break. It contained the wget.exe that was added to my $PATH after installing the Windows Compliant DRush, but the same idea applies if you used the Cygwin installer to fetch the wget package. The $ indicates a bash prompt that will run scripts natively inside the window only. See Chapter 3 of the Cygwin User's Guide to understand how to get the output you may need out to Windows.
使用安装的wget在您的帖子中下载该软件包,它应该下载到您的主目录中。使用pwd
找出该目录,并从第3章中的信息收集所需的输出。除非您曾经使用过CYGWIN,否则在弄乱Windows物理位置时不要使cygwin终端处于打开状态,反之亦然
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句