RootedGlobal/node-casperjs-aws-lambda

"Fatal: [Errno 2] No such file or directory; did you install phantomjs?\n"

deepakgd opened this issue · 8 comments

How to fix this issue?

seems like you don't have phantomjs installed? or check & set your phantomjs path manually

try: $ npm install -g phantomjs

visit this issue link for more:
https://github.com/casperjs/casperjs/issues/861

wont work in aws lambda

+1 have the same problem

hi @nikolaylukyanchuk covert your casperjs code into phantomjs code and provide node_module phantomjs path and filename in execFile. Sure it will work. i am using like this

@deepakgd @nikolaylukyanchuk Please pull the latest master - the issue is now been fixed in the PR #2 by @markni 👍

Hey @narainsagar Great work,
however i am still having the same issue.
I have casper and phantom running locally just great.
however I am still getting the same issue with lambda
"Fatal: [Errno 2] No such file or directory; did you install phantomjs?\n"
I have tried to point directly at exec in the root folder and it will not open it in aws lambda
I figured it might be in the casperjs
then i have added phantom PHANTOMJS_EXECUTABLE=pathtophantom in the .env file and still no luck to get it up and running along with Casper.
I have logged all my directories and i did find it there however it still will not open it.
My question is where exactly is it being called

More discussion on same issue: #3

Fixed in PR #4