Running Zombie.js on WIndows 7

115 views
Skip to first unread message

Paul Newton

unread,
Aug 6, 2014, 3:47:02 AM8/6/14
to zomb...@googlegroups.com
I have managed to setup node.js and zombie.js on my Windows system.  I have cretaed a really simple test which I can run from the cmd prompt using "node.exe ap.js" as long as the app.js is located in my user profile dirtectory (or a sub directory of it).  However if I take it outwith the directory, I get the following error:

C:\zombie\nodejs\node_modules\npm\node_modules\zombie\doc\new\zombie.js:143
if (document.readyState == "loading")
    ^
ReferenceError: document is not defined
    at Object.<anonymous> (C:\zombie\nodejs\node_modules\npm\node_modules\zombie
\doc\new\zombie.js:143:5)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (C:\Users\testGoogle.js:1:77)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)

I don't see anything obviously different and I have had a look at the environment variables but don't see anything obvious.  Can anybody make any suggestions on how I resolve this so that I can run from whatever location I like.  The plan is to move this to another machine.

Thanks,
Paul 
Reply all
Reply to author
Forward
0 new messages