small medium large xlarge

Back to: All Forums  CoffeeScript
Me1_pragsmall
03 May 2011, 17:47
Vladimir Kelman (15 posts)

I’m totally new to Linux. Just tried to install node and npm under Cygwin on my WinXP work machine. Node did install, but npm gives me errors. I cannot insert a screenshot here, but it looks identical to what edlongman reported in a comment near the bottom of https://gist.github.com/579814#comments page. It sarts from ECONNREFUSED, Could not contact DNS servers and then displays a bunch of errors and fails to install mpm. I tried curl http://npmjs.org/install.sh | npm_install=rc sh, but this just reports gzip: stdin: unexpected end of file.

isaacs then commeneted that, “But, really, the best answer is to either wait for a native windows port of node, or use use something like VMWare or VirtualBox to run an Ubuntu virtual machine.”

I have LinuxMint running under VMware virtual machine at home, but I was hoping to play with CoffeeScript on both home and work machines with Cygwin. In case we wanted to use CoffeeScript for actual development, it would be hard to impossible to convince my manager and coworkers to install Linux under virtual machine just for this purpose…

Trevor_burnham__goofy_headshot__pragsmall
03 May 2011, 19:16
Trevor Burnham (54 posts)

Hmm, I don’t have a Windows machine handy, so I’m afraid I can’t be of much use in getting to the bottom of this. Perhaps you could post to Stack Overflow?

In the meantime, you could use one of the alternative libraries mentioned here to run the CoffeeScript compiler directly on Windows: http://stackoverflow.com/questions/3175561/coffeescript-on-windows (The caveat is, of course, that you won’t have Node/npm, which the book expects.)

By the way, you shouldn’t use npm_install=rc anymore, since npm 1.0 was released a couple of days ago. The next beta release of the book will be changed to reflect this.

Trevor_burnham__goofy_headshot__pragsmall
03 May 2011, 19:25
Trevor Burnham (54 posts)

Looking at https://github.com/isaacs/npm/issues/283, it sounds like you might be having more general Internet connectivity issues in Cygwin. Do you get the same error message when you try curl http://google.com?

Me1_pragsmall
04 May 2011, 06:18
Vladimir Kelman (15 posts)

Trevor, thank you for quick answer. I’ll try to answer on your question above tomorrow when I’ll be at my work machine. Meanwhile I ran into an issue on my LinuxMint 10 at home. Starting a new thread.

Generic-user-small
30 Jun 2011, 20:22
Brad Cantrell (15 posts)

I dont know how to use cygwin at all. Im wondering if someone could provide instructions on how to install node.js, jquery and coffeescript on cygwin for windows users.

Also there are standalone javascript compilers that come as precompiled binaries for windows like dscript http://www.digitalmars.com/dscript/ and jsdb http://www.jsdb.org/ Im wondering if someone could compile coffeescript on windows into a binary that will work with one of these, or perhaps with V8 or Spidermonkey which also require compiling. And maybe with jquery also. And then provide this as a download for users of this book.

Trevor_burnham__goofy_headshot__pragsmall
01 Jul 2011, 15:09
Trevor Burnham (54 posts)

The good news is that Node.js 0.6 (which should be released in a few months) will offer first-class Windows support, meaning no more Cygwin.

Until then, there are several projects that let you compile CoffeeScript on your system without Node.js; see http://stackoverflow.com/questions/3175561/coffeescript-on-windows (or heck, just paste your CoffeeScript code into the “Try CoffeeScript” console at http://coffeescript.org). Of course, if you use these, you won’t be able to work with the Node.js chapter of the book.

Generic-user-small
01 Jul 2011, 19:56
Brad Cantrell (15 posts)

Trevor- Yes I heard about MS contracting with Joyent to port node.js to windows. I hope they can get that done quickly, before your book comes out. But the link you give only mentions using virtualbox. Building node.js is rather difficult even on Linux, Im wondering if you can build node.js/virtualbox/coffeescript on your Linux machine (doing ./configure and make) which would leave a binary that we run install on our particular distros. Is there anything that would legally prevent you from providing binaries of there open source compilers/apps as a downlaod?

I want to mention that Im reading your book now and its quite advanced. Im not a professional programmer or anything like that, but this book looks as though its written for someone with a CS background, far beyond what a regular PHP/Javascript programmer would understand.

On the books webpage the information about you mentions you are in the Cambridge Mass area, did you go to MIT?

You must be logged in to comment