Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How compile coffeescript in javascript on windows cmd
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  17 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Fernando Segura Gòmez  
View profile  
 More options Dec 14 2011, 2:41 pm
From: Fernando Segura Gòmez <angelus...@gmail.com>
Date: Wed, 14 Dec 2011 11:41:40 -0800 (PST)
Local: Wed, Dec 14 2011 2:41 pm
Subject: How compile coffeescript in javascript on windows cmd
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.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Hahn  
View profile  
 More options Dec 14 2011, 3:17 pm
From: Mark Hahn <m...@hahnca.com>
Date: Wed, 14 Dec 2011 12:17:25 -0800
Local: Wed, Dec 14 2011 3:17 pm
Subject: Re: [coffeescript] How compile coffeescript in javascript on windows cmd

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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fernando Segura Gòmez  
View profile  
 More options Dec 14 2011, 10:12 pm
From: Fernando Segura Gòmez <angelus...@gmail.com>
Date: Wed, 14 Dec 2011 21:12:43 -0600
Local: Wed, Dec 14 2011 10:12 pm
Subject: Re: [coffeescript] How compile coffeescript in javascript on windows cmd

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?

2011/12/14 Mark Hahn <m...@hahnca.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Hahn  
View profile  
 More options Dec 15 2011, 5:59 pm
From: Mark Hahn <m...@hahnca.com>
Date: Thu, 15 Dec 2011 14:59:26 -0800
Local: Thurs, Dec 15 2011 5:59 pm
Subject: Re: [coffeescript] How compile coffeescript in javascript on windows cmd

Did you download the coffeescript folder?

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>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fernando Segura Gòmez  
View profile  
 More options Dec 21 2011, 2:25 am
From: Fernando Segura Gòmez <angelus...@gmail.com>
Date: Wed, 21 Dec 2011 01:25:29 -0600
Local: Wed, Dec 21 2011 2:25 am
Subject: Re: [coffeescript] How compile coffeescript in javascript on windows cmd

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).

What is the error?

2011/12/15 Mark Hahn <m...@hahnca.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Hahn  
View profile  
 More options Dec 21 2011, 2:33 am
From: Mark Hahn <m...@hahnca.com>
Date: Tue, 20 Dec 2011 23:33:53 -0800
Local: Wed, Dec 21 2011 2:33 am
Subject: Re: [coffeescript] How compile coffeescript in javascript on windows cmd
"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>:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fernando Segura Gòmez  
View profile  
 More options Dec 21 2011, 2:46 am
From: Fernando Segura Gòmez <angelus...@gmail.com>
Date: Wed, 21 Dec 2011 01:46:01 -0600
Local: Wed, Dec 21 2011 2:46 am
Subject: Re: [coffeescript] How compile coffeescript in javascript on windows cmd

Before i execute the node command,the messenge where say the command
 coffee dont exist, after that, ReferenceError coffee is not defined

2011/12/21 Mark Hahn <m...@hahnca.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Hahn  
View profile  
 More options Dec 21 2011, 2:02 pm
From: Mark Hahn <m...@hahnca.com>
Date: Wed, 21 Dec 2011 11:02:33 -0800
Local: Wed, Dec 21 2011 2:02 pm
Subject: Re: [coffeescript] How compile coffeescript in javascript on windows cmd
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>:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fernando Segura Gòmez  
View profile  
 More options Dec 21 2011, 5:18 pm
From: Fernando Segura Gòmez <angelus...@gmail.com>
Date: Wed, 21 Dec 2011 16:18:20 -0600
Local: Wed, Dec 21 2011 5:18 pm
Subject: Re: [coffeescript] How compile coffeescript in javascript on windows cmd

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>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Hahn  
View profile  
 More options Dec 21 2011, 9:54 pm
From: Mark Hahn <m...@hahnca.com>
Date: Wed, 21 Dec 2011 18:54:45 -0800
Local: Wed, Dec 21 2011 9:54 pm
Subject: Re: [coffeescript] How compile coffeescript in javascript on windows cmd
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?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fernando Segura Gòmez  
View profile  
 More options Dec 21 2011, 10:54 pm
From: Fernando Segura Gòmez <angelus...@gmail.com>
Date: Wed, 21 Dec 2011 21:54:50 -0600
Local: Wed, Dec 21 2011 10:54 pm
Subject: Re: [coffeescript] How compile coffeescript in javascript on windows cmd

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?

2011/12/21 Mark Hahn <m...@hahnca.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Hahn  
View profile  
 More options Dec 21 2011, 11:46 pm
From: Mark Hahn <m...@hahnca.com>
Date: Wed, 21 Dec 2011 20:46:19 -0800
Local: Wed, Dec 21 2011 11:46 pm
Subject: Re: [coffeescript] How compile coffeescript in javascript on windows cmd

>  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) ...

    coffee -v


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fernando Segura Gòmez  
View profile  
 More options Dec 22 2011, 12:11 am
From: Fernando Segura Gòmez <angelus...@gmail.com>
Date: Wed, 21 Dec 2011 23:11:04 -0600
Local: Thurs, Dec 22 2011 12:11 am
Subject: Re: [coffeescript] How compile coffeescript in javascript on windows cmd

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>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Hahn  
View profile  
 More options Dec 22 2011, 12:22 am
From: Mark Hahn <m...@hahnca.com>
Date: Wed, 21 Dec 2011 21:22:46 -0800
Local: Thurs, Dec 22 2011 12:22 am
Subject: Re: [coffeescript] How compile coffeescript in javascript on windows cmd
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>:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Fernando Segura Gòmez  
View profile  
 More options Dec 22 2011, 12:59 am
From: Fernando Segura Gòmez <angelus...@gmail.com>
Date: Wed, 21 Dec 2011 23:59:33 -0600
Local: Thurs, Dec 22 2011 12:59 am
Subject: Re: [coffeescript] How compile coffeescript in javascript on windows cmd

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>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stephen Belanger  
View profile  
 More options Dec 22 2011, 1:31 am
From: Stephen Belanger <cyruzdr...@gmail.com>
Date: Wed, 21 Dec 2011 22:31:35 -0800
Local: Thurs, Dec 22 2011 1:31 am
Subject: Re: [coffeescript] How compile coffeescript in javascript on windows cmd

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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mark Hahn  
View profile  
 More options Dec 22 2011, 1:36 am
From: Mark Hahn <m...@hahnca.com>
Date: Wed, 21 Dec 2011 22:36:49 -0800
Local: Thurs, Dec 22 2011 1:36 am
Subject: Re: [coffeescript] How compile coffeescript in javascript on windows cmd

There should be a coffee.bat in the path to simulate the way it works in
unix.

On Wed, Dec 21, 2011 at 10:31 PM, Stephen Belanger <cyruzdr...@gmail.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »