can phantomjs work with node.js?

前端 未结 7 1701
难免孤独
难免孤独 2020-11-30 03:56

I would like to use phantomjs in my node.js script. there is a phantomjs-node library.. but unfortunately the author used this weird coffee script code to explain what he\'s

7条回答
  •  眼角桃花
    2020-11-30 04:32

    I experienced the same problems as you do, and apparently, there is a known issue with phantomjs-node and newer versions of nodejs. Seems like it stopped working somewhere around node 0.9.3, according to the comments in the issue. So until that has been resolved, you either have to downgrade nodejs, or try a different module, like node-phantom, or just use exec/spawn.

提交回复
热议问题