blackboard / lambda-selenium

Use Selenium Webdriver and Chrome inside AWS Lambda
MIT License
230 stars 51 forks source link

Chromedriver path error when aws-sdk modules installed via package.json #38

Open codetherus opened 6 years ago

codetherus commented 6 years ago

I'm getting 'chromedriver not found in path' error after installing aws-sdk via npm install. Looks like module conflict.

ginman86 commented 5 years ago

Try adding this to the top of your handler:

process.env.PATH = `${process.env.PATH}:${process.env.LAMBDA_TASK_ROOT}/bin`;

Replace bin in the above with wherever you put the binaries.