Seems to be a problem with newer versions of node. I've tested on Ubuntu
14.04. Everything up to Node.js version 0.11.6 is not causing any problems,
starting with 0.11.7 I can see the same error message you reported:

Installed node using https://github.com/creationix/nvm, which allows you to
easily switch between Node.js versions.

raju@ubuntu:~/coding/cljs/hello-world$ nvm install 0.11.6
########################################################################
100.0%
Now using node v0.11.6
raju@ubuntu:~/coding/cljs/hello-world$ node run.js
util.print: Use console.log instead
Hello world!util.print: Use console.log instead

raju@ubuntu:~/coding/cljs/hello-world$ nvm install 0.11.7
v0.11.7 is already installed.
Now using node v0.11.7
raju@ubuntu:~/coding/cljs/hello-world$ node run.js

/home/raju/coding/cljs/hello-world/out/goog/bootstrap/nodejs.js:69
  process.binding('evals').NodeScript.runInThisContext.call(
          ^
Error: No such module
    at nodeGlobalRequire
(/home/raju/coding/cljs/hello-world/out/goog/bootstrap/nodejs.js:69:11)
    at Object.<anonymous>
(/home/raju/coding/cljs/hello-world/out/goog/bootstrap/nodejs.js:77:1)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:349:32)
    at Function.Module._load (module.js:305:12)
    at Module.require (module.js:357:17)
    at require (module.js:373:17)
    at Object.<anonymous> (/home/raju/coding/cljs/hello-world/run.js:5:1)
    at Module._compile (module.js:449:26)

Probably a bug in the unstable version of node you are using. Looking at
the node.js website, the version they offer for download by defaut ist
0.10.34:
http://nodejs.org/download/

- Raju

On Tue, Dec 23, 2014 at 11:54 AM, Raju Bitter <rajubit...@gmail.com> wrote:

> Works fine for me, I'm on Mac Yosemite, Node version v0.10.33 (installed
> through brew). I'll do a test run on Ubuntu, never used Nixos.
>
>
> On Tue, Dec 23, 2014 at 11:11 AM, Andrew Keedle <akee...@gmail.com> wrote:
>
>> Never looked at Node before. I've followed the instructions, but I get
>> this error when running: node run.js
>>
>> (I'm using nixos with node v0.11.13. Anyone got any clues?)
>>
>> [keeds@pixie:~/workspace/hello-world]$ node run.js
>>
>> /home/keeds/workspace/hello-world/out/goog/bootstrap/nodejs.js:69
>>   process.binding('evals').NodeScript.runInThisContext.call(
>>           ^
>> Error: No such module
>>     at Error (native)
>>     at nodeGlobalRequire
>> (/home/keeds/workspace/hello-world/out/goog/bootstrap/nodejs.js:69:11)
>>     at Object.<anonymous>
>> (/home/keeds/workspace/hello-world/out/goog/bootstrap/nodejs.js:77:1)
>>     at Module._compile (module.js:449:26)
>>     at Object.Module._extensions..js (module.js:467:10)
>>     at Module.load (module.js:349:32)
>>     at Function.Module._load (module.js:305:12)
>>     at Module.require (module.js:357:17)
>>     at require (module.js:373:17)
>>     at Object.<anonymous> (/home/keeds/workspace/hello-world/run.js:5:1)
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clojure@googlegroups.com
>> Note that posts from new members are moderated - please be patient with
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to clojure+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to