Hi, i have a question about the method of compile on windows; i've seen so far tutorials, and books, where the examples of method to compile is in linux,but, how i can compile in windows? I have windows 7.
I download the node.exe,and installed the node.exe. The node.js now is in the file c:\\program files\nodejs , in this folder i found : one folder called node_modules, one .exe called node , and one file type script/command called npm, now, i run the node.exe and the cmd window is open, in this cmd i have to writte coffeescript\bin\coffee ? or other word is before that "coffeescript\bin\coffee?
> Get the single node.exe file and put it in your path. Then download the > entire coffeescript folder. Run coffeescript\bin\coffee. That's all it > takes.
> I download the node.exe,and installed the node.exe. The node.js now is in > the file c:\\program files\nodejs , in this folder i found : one folder > called node_modules, one .exe called node , and one file type > script/command called npm, now, i run the node.exe and the cmd window is > open, in this cmd i have to writte coffeescript\bin\coffee ? or other word > is before that "coffeescript\bin\coffee?
>> Get the single node.exe file and put it in your path. Then download the >> entire coffeescript folder. Run coffeescript\bin\coffee. That's all it >> takes.
Yes, i download the coffeescript folder, into the c:/ , and in cmd,execute node, and write : coffee -c test.coffee , but nothing, just appear : ... (three points).
> The only way I've done this is from the command line.
> 1) Open an empty command window.
> 2) Change to the coffeescript bin folder]
> cd c:\path\to\coffeescript\bin
> 3) Make sure node runs from the command line
> node
> 4) Then just run any coffee command
> coffee
> 2011/12/14 Fernando Segura Gòmez <angelus...@gmail.com>
>> I download the node.exe,and installed the node.exe. The node.js now is in >> the file c:\\program files\nodejs , in this folder i found : one folder >> called node_modules, one .exe called node , and one file type >> script/command called npm, now, i run the node.exe and the cmd window is >> open, in this cmd i have to writte coffeescript\bin\coffee ? or other word >> is before that "coffeescript\bin\coffee?
>>> Get the single node.exe file and put it in your path. Then download the >>> entire coffeescript folder. Run coffeescript\bin\coffee. That's all it >>> takes.
"coffee -c test.coffee" shouldn't print anything on the terminal. It just means to compile test.coffee and create a test.js file. If you want to run test.coffee then use "coffee test.coffee".
What does this print on the terminal?
coffee -v
2011/12/20 Fernando Segura Gòmez <angelus...@gmail.com>:
> Yes, i download the coffeescript folder, into the c:/ , and in cmd,execute > node, and write : coffee -c test.coffee , but nothing, just appear : ... > (three points).
>> The only way I've done this is from the command line.
>> 1) Open an empty command window.
>> 2) Change to the coffeescript bin folder]
>> cd c:\path\to\coffeescript\bin
>> 3) Make sure node runs from the command line
>> node
>> 4) Then just run any coffee command
>> coffee
>> 2011/12/14 Fernando Segura Gòmez <angelus...@gmail.com>
>>> I download the node.exe,and installed the node.exe. The node.js now is in >>> the file c:\\program files\nodejs , in this folder i found : one folder >>> called node_modules, one .exe called node , and one file type script/command >>> called npm, now, i run the node.exe and the cmd window is open, in this cmd >>> i have to writte coffeescript\bin\coffee ? or other word is before that >>> "coffeescript\bin\coffee?
>>>> Get the single node.exe file and put it in your path. Then download the >>>> entire coffeescript folder. Run coffeescript\bin\coffee. That's all it >>>> takes.
> "coffee -c test.coffee" shouldn't print anything on the terminal. It > just means to compile test.coffee and create a test.js file. If you > want to run test.coffee then use "coffee test.coffee".
> What does this print on the terminal?
> coffee -v
> 2011/12/20 Fernando Segura Gòmez <angelus...@gmail.com>: > > Yes, i download the coffeescript folder, into the c:/ , and in > cmd,execute > > node, and write : coffee -c test.coffee , but nothing, just appear : ... > > (three points).
> >> The only way I've done this is from the command line.
> >> 1) Open an empty command window.
> >> 2) Change to the coffeescript bin folder]
> >> cd c:\path\to\coffeescript\bin
> >> 3) Make sure node runs from the command line
> >> node
> >> 4) Then just run any coffee command
> >> coffee
> >> 2011/12/14 Fernando Segura Gòmez <angelus...@gmail.com>
> >>> I download the node.exe,and installed the node.exe. The node.js now is > in > >>> the file c:\\program files\nodejs , in this folder i found : one folder > >>> called node_modules, one .exe called node , and one file type > script/command > >>> called npm, now, i run the node.exe and the cmd window is open, in > this cmd > >>> i have to writte coffeescript\bin\coffee ? or other word is before that > >>> "coffeescript\bin\coffee?
> >>>> Get the single node.exe file and put it in your path. Then download > the > >>>> entire coffeescript folder. Run coffeescript\bin\coffee. That's all > it > >>>> takes.
If node is running but coffee isn't, then you either need to be in the coffee bin directory or put coffee bin in your path. I don't know what else I can tell you.
2011/12/20 Fernando Segura Gòmez <angelus...@gmail.com>:
>> "coffee -c test.coffee" shouldn't print anything on the terminal. It >> just means to compile test.coffee and create a test.js file. If you >> want to run test.coffee then use "coffee test.coffee".
>> What does this print on the terminal?
>> coffee -v
>> 2011/12/20 Fernando Segura Gòmez <angelus...@gmail.com>: >> > Yes, i download the coffeescript folder, into the c:/ , and in >> > cmd,execute >> > node, and write : coffee -c test.coffee , but nothing, just appear : >> > ... >> > (three points).
>> >> The only way I've done this is from the command line.
>> >> 1) Open an empty command window.
>> >> 2) Change to the coffeescript bin folder]
>> >> cd c:\path\to\coffeescript\bin
>> >> 3) Make sure node runs from the command line
>> >> node
>> >> 4) Then just run any coffee command
>> >> coffee
>> >> 2011/12/14 Fernando Segura Gòmez <angelus...@gmail.com>
>> >>> I download the node.exe,and installed the node.exe. The node.js now is >> >>> in >> >>> the file c:\\program files\nodejs , in this folder i found : one >> >>> folder >> >>> called node_modules, one .exe called node , and one file type >> >>> script/command >> >>> called npm, now, i run the node.exe and the cmd window is open, in >> >>> this cmd >> >>> i have to writte coffeescript\bin\coffee ? or other word is before >> >>> that >> >>> "coffeescript\bin\coffee?
>> >>>> Get the single node.exe file and put it in your path. Then download >> >>>> the >> >>>> entire coffeescript folder. Run coffeescript\bin\coffee. That's all >> >>>> it >> >>>> takes.
Into the path? Where,for example, the path of python is written? Im in the bin directory(this is a screenshoot of my cmd http://imageshack.us/photo/my-images/689/capturedir.png/) i write the command node and the command coffee,but when i did it is when the error is displayed. So, i need to write the path or, my error can be solved by cmd? 2011/12/21 Mark Hahn <m...@hahnca.com>
> If node is running but coffee isn't, then you either need to be in the > coffee bin directory or put coffee bin in your path. I don't know > what else I can tell you.
> 2011/12/20 Fernando Segura Gòmez <angelus...@gmail.com>: > > Before i execute the node command,the messenge where say the command > coffee > > dont exist, after that, ReferenceError coffee is not defined
> >> "coffee -c test.coffee" shouldn't print anything on the terminal. It > >> just means to compile test.coffee and create a test.js file. If you > >> want to run test.coffee then use "coffee test.coffee".
> >> What does this print on the terminal?
> >> coffee -v
> >> 2011/12/20 Fernando Segura Gòmez <angelus...@gmail.com>: > >> > Yes, i download the coffeescript folder, into the c:/ , and in > >> > cmd,execute > >> > node, and write : coffee -c test.coffee , but nothing, just appear : > >> > ... > >> > (three points).
> >> >> The only way I've done this is from the command line.
> >> >> 1) Open an empty command window.
> >> >> 2) Change to the coffeescript bin folder]
> >> >> cd c:\path\to\coffeescript\bin
> >> >> 3) Make sure node runs from the command line
> >> >> node
> >> >> 4) Then just run any coffee command
> >> >> coffee
> >> >> 2011/12/14 Fernando Segura Gòmez <angelus...@gmail.com>
> >> >>> I download the node.exe,and installed the node.exe. The node.js now > is > >> >>> in > >> >>> the file c:\\program files\nodejs , in this folder i found : one > >> >>> folder > >> >>> called node_modules, one .exe called node , and one file type > >> >>> script/command > >> >>> called npm, now, i run the node.exe and the cmd window is open, in > >> >>> this cmd > >> >>> i have to writte coffeescript\bin\coffee ? or other word is before > >> >>> that > >> >>> "coffeescript\bin\coffee?
> >> >>>> Get the single node.exe file and put it in your path. Then > download > >> >>>> the > >> >>>> entire coffeescript folder. Run coffeescript\bin\coffee. That's > all > >> >>>> it > >> >>>> takes.
I see that you were able to open node. I didn't see that you tried to run coffee. Were you aware that you run the coffee command from the windows cmd prompt, not inside node?
This is the screenshot when i write coffee -c clases.coffee,if you see, i run the command coffee,nothing happened( http://imageshack.us/photo/my-images/694/cofferesolv.png/ ), I run the coffee command from windows cmd, if i run inside node, where i need to put my files .coffee?
> I see that you were able to open node. I didn't see that you tried to > run coffee. Were you aware that you run the coffee command from the > windows cmd prompt, not inside node?
> if i run inside node, where i need to put my files .coffee?
You never run coffee commands from inside node. The "coffee" command starts up node automatically. The following compiles the coffee file and then runs it in node ...
coffee test.coffee
You can only run javascript files with node, like "node test.js". So one option is to run the coffee command (not inside node) with the -c option, to compile a coffeescript file to .js. Then run the .js file from node..
coffee -c test.coffee node test.js
Again, please try running this from your command window (not inside node) ...
Ok. When i write the command coffee -v in cmd(not inside node), this message appear(im mexican, so the message is in spanish): "coffee" no se reconoce como un comando interno o externo,programa o archivo por lotes ejecutable, in english (my translate is not very good) : "coffee" is not recognized as an internal or external command,program or batch file. I assume that the error is because i did not write the address path, if is this my error, what path i have to write ? Assuming that the address where i have coffeescript is : c://coffeescript , ¿i have to put that path, or what path i have to write?. Thank you very much for answering each question, many of the questions very stupids.
> > if i run inside node, where i need to put my files .coffee?
> You never run coffee commands from inside node. The "coffee" command > starts up node automatically. The following compiles the coffee file > and then runs it in node ...
> coffee test.coffee
> You can only run javascript files with node, like "node test.js". So > one option is to run the coffee command (not inside node) with the -c > option, to compile a coffeescript file to .js. Then run the .js file > from node..
> coffee -c test.coffee > node test.js
> Again, please try running this from your command window (not inside node) > ...
I was wrong. You should run coffee inside of node. I thought windows worked like linux, which is not true. Here is an example that runs in my windows laptop. I went to the coffeescript\bin directory (that has the file called "coffee" in it). Then I tested that coffee worked ...
node coffee -v
I'm sorry if I confused you.
So you can compile ...
node coffee -c test.coffee
or just run a file directly ...
node coffee test.coffee
2011/12/21 Fernando Segura Gòmez <angelus...@gmail.com>:
> Ok. When i write the command coffee -v in cmd(not inside node), this message > appear(im mexican, so the message is in spanish): > "coffee" no se reconoce como un comando interno o externo,programa o archivo > por lotes ejecutable, in english (my translate is not very good) : > "coffee" is not recognized as an internal or external command,program or > batch file. > I assume that the error is because i did not write the address path, if is > this my error, what path i have to write ? Assuming that the address where i > have coffeescript is : c://coffeescript , ¿i have to put that path, or what > path i have to write?. > Thank you very much for answering each question, many of the questions very > stupids.
>> > if i run inside node, where i need to put my files .coffee?
>> You never run coffee commands from inside node. The "coffee" command >> starts up node automatically. The following compiles the coffee file >> and then runs it in node ...
>> coffee test.coffee
>> You can only run javascript files with node, like "node test.js". So >> one option is to run the coffee command (not inside node) with the -c >> option, to compile a coffeescript file to .js. Then run the .js file >> from node..
>> coffee -c test.coffee >> node test.js
>> Again, please try running this from your command window (not inside node) >> ...
Yeah , finally it worked, thank you so much for the help, my project finally can be finished. Thanks for the help, and dont worry about the confussion, i will have to read a lot about coffeescript.
> I was wrong. You should run coffee inside of node. I thought windows > worked like linux, which is not true. Here is an example that runs in > my windows laptop. I went to the coffeescript\bin directory (that has > the file called "coffee" in it). Then I tested that coffee worked ...
> node coffee -v
> I'm sorry if I confused you.
> So you can compile ...
> node coffee -c test.coffee
> or just run a file directly ...
> node coffee test.coffee
> 2011/12/21 Fernando Segura Gòmez <angelus...@gmail.com>: > > Ok. When i write the command coffee -v in cmd(not inside node), this > message > > appear(im mexican, so the message is in spanish): > > "coffee" no se reconoce como un comando interno o externo,programa o > archivo > > por lotes ejecutable, in english (my translate is not very good) : > > "coffee" is not recognized as an internal or external command,program or > > batch file. > > I assume that the error is because i did not write the address path, if > is > > this my error, what path i have to write ? Assuming that the address > where i > > have coffeescript is : c://coffeescript , ¿i have to put that path, or > what > > path i have to write?. > > Thank you very much for answering each question, many of the questions > very > > stupids.
> >> > if i run inside node, where i need to put my files .coffee?
> >> You never run coffee commands from inside node. The "coffee" command > >> starts up node automatically. The following compiles the coffee file > >> and then runs it in node ...
> >> coffee test.coffee
> >> You can only run javascript files with node, like "node test.js". So > >> one option is to run the coffee command (not inside node) with the -c > >> option, to compile a coffeescript file to .js. Then run the .js file > >> from node..
> >> coffee -c test.coffee > >> node test.js
> >> Again, please try running this from your command window (not inside > node) > >> ...
Windows doesn't support interpreter directives (the shebang line at the top of bin/coffee), so it won't know to run the file in node unless you explicitly do "node coffee" like that, where coffee is the full path to the bin/coffee file.
On Wednesday, 21 December, 2011 at 9:59 PM, Fernando Segura Gòmez wrote: > Yeah , finally it worked, thank you so much for the help, my project finally can be finished. > Thanks for the help, and dont worry about the confussion, i will have to read a lot about coffeescript.
> 2011/12/21 Mark Hahn <m...@hahnca.com (mailto:m...@hahnca.com)> > > I was wrong. You should run coffee inside of node. I thought windows > > worked like linux, which is not true. Here is an example that runs in > > my windows laptop. I went to the coffeescript\bin directory (that has > > the file called "coffee" in it). Then I tested that coffee worked ...
> > node coffee -v
> > I'm sorry if I confused you.
> > So you can compile ...
> > node coffee -c test.coffee
> > or just run a file directly ...
> > node coffee test.coffee
> > 2011/12/21 Fernando Segura Gòmez <angelus...@gmail.com (mailto:angelus...@gmail.com)>: > > > Ok. When i write the command coffee -v in cmd(not inside node), this message > > > appear(im mexican, so the message is in spanish): > > > "coffee" no se reconoce como un comando interno o externo,programa o archivo > > > por lotes ejecutable, in english (my translate is not very good) : > > > "coffee" is not recognized as an internal or external command,program or > > > batch file. > > > I assume that the error is because i did not write the address path, if is > > > this my error, what path i have to write ? Assuming that the address where i > > > have coffeescript is : c://coffeescript , ¿i have to put that path, or what > > > path i have to write?. > > > Thank you very much for answering each question, many of the questions very > > > stupids.
> > > 2011/12/21 Mark Hahn <m...@hahnca.com (mailto:m...@hahnca.com)>
> > >> > if i run inside node, where i need to put my files .coffee?
> > >> You never run coffee commands from inside node. The "coffee" command > > >> starts up node automatically. The following compiles the coffee file > > >> and then runs it in node ...
> > >> coffee test.coffee
> > >> You can only run javascript files with node, like "node test.js". So > > >> one option is to run the coffee command (not inside node) with the -c > > >> option, to compile a coffeescript file to .js. Then run the .js file > > >> from node..
> > >> coffee -c test.coffee > > >> node test.js
> > >> Again, please try running this from your command window (not inside node) > > >> ...
> Windows doesn't support interpreter directives (the shebang line at the > top of bin/coffee), so it won't know to run the file in node unless you > explicitly do "node coffee" like that, where coffee is the full path to the > bin/coffee file.
> On Wednesday, 21 December, 2011 at 9:59 PM, Fernando Segura Gòmez wrote:
> Yeah , finally it worked, thank you so much for the help, my project > finally can be finished. > Thanks for the help, and dont worry about the confussion, i will have to > read a lot about coffeescript.
> I was wrong. You should run coffee inside of node. I thought windows > worked like linux, which is not true. Here is an example that runs in > my windows laptop. I went to the coffeescript\bin directory (that has > the file called "coffee" in it). Then I tested that coffee worked ...
> node coffee -v
> I'm sorry if I confused you.
> So you can compile ...
> node coffee -c test.coffee
> or just run a file directly ...
> node coffee test.coffee
> 2011/12/21 Fernando Segura Gòmez <angelus...@gmail.com>: > > Ok. When i write the command coffee -v in cmd(not inside node), this > message > > appear(im mexican, so the message is in spanish): > > "coffee" no se reconoce como un comando interno o externo,programa o > archivo > > por lotes ejecutable, in english (my translate is not very good) : > > "coffee" is not recognized as an internal or external command,program or > > batch file. > > I assume that the error is because i did not write the address path, if > is > > this my error, what path i have to write ? Assuming that the address > where i > > have coffeescript is : c://coffeescript , ¿i have to put that path, or > what > > path i have to write?. > > Thank you very much for answering each question, many of the questions > very > > stupids.
> >> > if i run inside node, where i need to put my files .coffee?
> >> You never run coffee commands from inside node. The "coffee" command > >> starts up node automatically. The following compiles the coffee file > >> and then runs it in node ...
> >> coffee test.coffee
> >> You can only run javascript files with node, like "node test.js". So > >> one option is to run the coffee command (not inside node) with the -c > >> option, to compile a coffeescript file to .js. Then run the .js file > >> from node..
> >> coffee -c test.coffee > >> node test.js
> >> Again, please try running this from your command window (not inside > node) > >> ...