Skip to content

Compatibility problems with Windows #21

@jmhomedes

Description

@jmhomedes

Running the plugin on Windows 8 x64 throws an error ENOENT when trying to spawn phantomjs. It seems like is a known issue with child_process.spawn not respecting EXTPATH, as mentioned here: nodejs/node-v0.x-archive#2318

Then I tried to change the name passed to spawn process to 'phantomjs.cmd' and it worked fine. As this is not a X-platform solution, I thought on requiring explicitly phantomjs in project, taking the opportunity to require latest phantomjs-prebuilt module and calling spawn with require('phantomjs-prebuilt').path

I tried it on Win8x64 and Ubuntu 14.04 and working fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions