Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PhantomJS bin script cannot be spawned in Windows using phantomPath option #92

Open
gamtiq opened this issue Feb 26, 2014 · 0 comments
Open

Comments

@gamtiq
Copy link

gamtiq commented Feb 26, 2014

I tried to detect why a script does not work in my system (Windows 7) and found that the problem is related to node-phantom and phantomjs bin script. Namely, node-phantom cannot spawn PhantomJS when phantomPath option points to phantomjs bin script.
This can be fixed (quick and dirty) by changing the line to the following:

var phantom=child.spawn("node", [options.phantomPath].concat(args));

Is it possible to make some changes (maybe via checks and/or additional option) so that bin script can be used in Windows to run PhantomJS?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant