-
-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Browser is not downloaded. Run "npm install" or "yarn install" #106
Comments
Not an isolated case. Same here 👍 |
@alixaxel I'm getting this on my local machine, tried both of npm and yarn |
@alixaxel ok got it:
FYI, I'm running on linux x64 too. I suggest you mention this on the readme as well as on this comment that is popular puppeteer/puppeteer#3120 (comment). There is an other issue with this behavior. Our whole test suit becomes pointless locally if we can't run it locally against the binaries that are executed in prod, at least it can slow down development at some point. |
@gsouf There's a section on the README about running locally, I guess most people just don't read it. You can test the binary locally, you just have to make sure that you run it inside a host/container that shares the same architecture/OS as the one that's available on AWS Lambda. There are already projects for this (lambdaci for instance) - other than that there's not much more I can do. |
Which Linux distribution / version are you running? |
Nothing fancy, a pretty common Ubuntu 18.04.1 LTS |
I suggest you write it higher in the readme and also explicitely stating the same thing that you wrote in the wiki. |
@gsouf Will consider that, thanks! For Ubuntu LTS you should be able to run it locally, all you have to do is set the ENV variables. |
Confirm, adding env variables fixed. |
const chromium = require('chrome-aws-lambda') |
@alixaxel @Hectare-Agritech @gsouf Sorry guys.. The solution you give didn't worked for me.
I use the above package.json file with node version 10.13.0 it worked fine. I don't know what happened Previously i was able to run this locally as well as inside aws with chrome-aws-lambda version ^2 |
@jagadeesh93 Did you do |
Environment
chrome-aws-lambda
Version: ^2.1.1puppeteer
/puppeteer-core
Version: ^2.1.1Expected Behavior
Need to working as expected
Current Behavior
Got following error "Browser is not downloaded. Run "npm install" or "yarn install""
Possible Solution
Steps to Reproduce
while initializing the browser the above error occurs
Error in the following line
let browser = await chromium.puppeteer.launch({ args: chromium.args, defaultViewport: chromium.defaultViewport, executablePath: await chromium.executablePath, headless: chromium.headless, });
The text was updated successfully, but these errors were encountered: