问题描述
我正在尝试在Windows计算机上为Node设置Derby.js.根据Derby.js的安装说明,要使用咖啡因,我必须执行以下操作:
I am trying to setup Derby.js for Node on my Windows Machine. According to the Derby.js setup instructions, in order to use coffescript, I must do the following:
$ cd ~
$ derby new --coffee first-project
$ cd first-project
$ make
这一直有效,直到"make"部分为止,这显然需要一个make程序.我下载了一个make.exe文件,该文件应该可以使它运行,但是它告诉我找不到该文件.我在文本编辑器中打开了生成文件,以查看其指向的路径是否存在,并且确实存在.我想知道它是否必须以不同的方式引用文件的路径,因为它位于Windows上并且正在通过命令提示符运行?有人知道我可能会做什么吗?我所能想到的就是在Linux的VM上进行设置,然后将文件复制过来,但是这样做有点麻烦.
This worked, up until the "make" portion, which obviously requires a make program. I downloaded a make.exe file that is supposed to get it going, but it tells me that it can't find the file. I opened the make-file in a text editor to see if the path it pointed to exists, and it does. I'm wondering if it has to reference the path to the file differently since its located on windows and is being run through the command prompt? Does anyone know what I might be able to do? All I can think of is setting it up on a VM of linux, and then copying the files over, but it's a bit of a pain to do.
推荐答案
如您所见,单靠make
是不够的.您需要Cygwin.
As you found, a stand-alone make
wasn't enough; you needed Cygwin.
make
是一个解释makefile并执行makefile中命令的程序.但是,这些命令是什么?如果查看您的makefile,您将看到UNIX风格的命令,这些命令在Linux,Mac OS X或Cygwin中可用,而在现成的Windows系统中不可用.因此,仅获取make
是不够的.
make
is a program that interprets a makefile and executes the commands in the makefile. But, what are those commands? If you look at your makefile you will see UNIX-style commands that are available in Linux, Mac OS X, or Cygwin but are not available in an off-the-shelf Windows system. Thus, simply grabbing a make
wasn't enough.
这篇关于“制作" Windows命令-可能的选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!