shawnliujw / puppeteer-lambda

Module for using Headless-Chrome by Puppeteer on AWS Lambda.
MIT License
117 stars 20 forks source link

Failed to install puppeteer-lambda on mac #20

Closed zhaoyi0113 closed 5 years ago

zhaoyi0113 commented 5 years ago

I followed the instruction on readme to install this dependency but it strucks on download. I run this command on Mac. Node is v8.9.0 npm is 5.6.0. Below is the output. I wonder whether I need to set the env CUSTOM_CHROME=true on local command or set it in lambda function?

$CUSTOM_CHROME=true npm install puppeteer-lambda
> puppeteer-core@1.16.0 install /Users/joeyzhao/dev/bigcrunch/TheBigCrunch/TheLambda/lambdas/node_modules/puppeteer-core
> node install.js

> puppeteer-lambda@1.0.16 install /Users/joeyzhao/dev/bigcrunch/TheBigCrunch/TheLambda/lambdas/node_modules/puppeteer-lambda
> node src/install.js

downloading chrome ...
shawnliujw commented 5 years ago

@zhaoyi0113 you don't need CUSTOM_CHROME in your localhost and i just update , please use latest version 1.1.0 . add --registry=https://registry.npm.taobao.org/ if you still can't download chromnium

zhaoyi0113 commented 5 years ago

it works, thanks