sheebz / phantom-proxy

a lightweight proxy that lets you to drive phantomjs from node.
MIT License
137 stars 33 forks source link

ubuntu "Can't find variable: process" #66

Open sushma opened 10 years ago

sushma commented 10 years ago

Just installed phantom-proxy from npm. Ran the first example of the readme.md ( the one with waitForSelector ) and got the following result

ReferenceError: Can't find variable: process /home/aashish/node_modules/phantom-proxy/lib/proxy.js:285 /home/aashish/node_modules/phantom-proxy/lib/proxy.js:289

TypeError: 'undefined' is not a function (evaluating 'phantomProxy.create') phantomtest.js:12

Running the first statement "phantomProxy = require('phantom-proxy');" also returns the above mentioned ReferenceError.

Node v0.10.5 PhantomJS 1.9.2

Thanks for writing this nice module but I can't get it running .