chrome-aws-lambda: [BUG] Browser is not downloaded. Run "npm install" or "yarn install"

Environment

  • chrome-aws-lambda Version: ^2.1.1
  • puppeteer / puppeteer-core Version: ^2.1.1
  • OS: windows
  • Node.js Version: v10.15.0
  • Lambda / GCF Runtime:

Expected 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, });

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 1
  • Comments: 15 (5 by maintainers)

Most upvoted comments

@jagadeesh93 Did you do npm i puppeteer --save-dev?

const chromium = require(‘chrome-aws-lambda’) const puppeteer = chromium.puppeteer

@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.