Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

How do I make my project use the included puppeteer npm package? #118

Open
joadr opened this issue May 20, 2020 · 1 comment
Open

How do I make my project use the included puppeteer npm package? #118

joadr opened this issue May 20, 2020 · 1 comment

Comments

@joadr
Copy link

joadr commented May 20, 2020

Hello,
After building with this image I found out that I was around 1.5 GB, I found out that it has a puppeteer v3 installed on it, so I removed the puppeteer v2 from my package.json but now I get that puppeteer is not installed.

Any idea on how to make it work with the included version?

thanks

@joaocarmo
Copy link

@joadr try to add puppeteer as an optional project dependency:

npm i puppeteer --save-optional

# or

yarn add puppeteer --optional

Then, in the image, install the dependencies excluding the optional ones:

npm i --no-optional

# or

yarn install --no-optional

By doing this, puppeteer is part of the project, but not installed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants