i have a rather simple problem with running coffescript file which uses node js. After compiling this peace of code I can run it with node command, but when I use coffee command with original source require function returns undefined object
require('util').print 'abc'
I'm not sure I totally understand your question. You need to know two things:
Look at your JavaScript output and see if something returns where you didn't expect it to.
I cannot reproduce this problem:
$ cat test.coffee
require('util').print 'abc'
$ coffee test.coffee
abc
I know it doesn't directly answer your question, but perhaps knowing that it works will steer you in the right direction. :)