# Has anyone got puppeteer working on netlify node 18?

**URL:** <https://answers.netlify.com/t/has-anyone-got-puppeteer-working-on-netlify-node-18/96775>\
**Category:** Support\
**Tags:** lambda-functions\
**Created:** [July 16, 2023, 8:52pm UTC](https://answers.netlify.com/t/has-anyone-got-puppeteer-working-on-netlify-node-18/96775 "2023-07-16T20:52:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![felixthehat](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/felixthehat/32/31826_2.png) [@felixthehat](https://answers.netlify.com/u/felixthehat)\
**Post date:** [July 16, 2023, 8:52pm UTC](https://answers.netlify.com/t/has-anyone-got-puppeteer-working-on-netlify-node-18/96775/1 "2023-07-16T20:52:11Z")

</div>

hello! has anyone had any luck getting puppeteer working in netlify functions?

I’ve tried every possible combination of puppeteer, puppeteer-min, @sparticuz/chromium-min, chrome-aws-lambda and @sparticuz/chromium on many different versions but I always get errors when I deploy (works fine locally with netlify dev) from ERR\_INVALID\_ARG\_TYPE to browser closed! to libssl errors

any working versions/combinations would be much appreciated!

---

<div class="post-metadata">

**Author:** ![hrishikesh](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/hrishikesh/32/74607_2.png) [@hrishikesh](https://answers.netlify.com/u/hrishikesh)\
**Post date:** [July 23, 2023, 6:54pm UTC](https://answers.netlify.com/t/has-anyone-got-puppeteer-working-on-netlify-node-18/96775/2 "2023-07-23T18:54:33Z")

</div>

Mind sharing a minimal reproduction so we can check?

---

<div class="post-metadata">

**Author:** ![felixthehat](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/felixthehat/32/31826_2.png) [@felixthehat](https://answers.netlify.com/u/felixthehat)\
**Post date:** [July 24, 2023, 2:11pm UTC](https://answers.netlify.com/t/has-anyone-got-puppeteer-working-on-netlify-node-18/96775/3 "2023-07-24T14:11:23Z")

</div>

nevermind all I got it working, and blogged about it in case anyone else gets stuck

> **[Getting Puppeteer to work in Netlify functions](https://www.blackspike.com/blog/netlify-puppeteer/)**
>
> We had quite a hassle getting Puppeteer working in Netlify functions, but we did and here is proof in a demo project.

---

<div class="post-metadata">

**Author:** ![felixthehat](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/felixthehat/32/31826_2.png) [@felixthehat](https://answers.netlify.com/u/felixthehat)\
**Post date:** [July 24, 2023, 2:11pm UTC](https://answers.netlify.com/t/has-anyone-got-puppeteer-working-on-netlify-node-18/96775/4 "2023-07-24T14:11:30Z")

</div>

just solved it thanks! [Getting Puppeteer to work in Netlify functions](https://www.blackspike.com/blog/netlify-puppeteer/)

---

<div class="post-metadata">

**Author:** ![SamO](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/samo/32/41847_2.png) [@SamO](https://answers.netlify.com/u/SamO)\
**Post date:** [July 24, 2023, 3:21pm UTC](https://answers.netlify.com/t/has-anyone-got-puppeteer-working-on-netlify-node-18/96775/5 "2023-07-24T15:21:45Z")

</div>

thanks for coming back and sharing your solution with the community!

---

<div class="post-metadata">

**Author:** ![Dan99](https://avatars.discourse-cdn.com/v4/letter/d/eada6e/32.png) [@Dan99](https://answers.netlify.com/u/Dan99)\
**Post date:** [June 24, 2024, 10:10am UTC](https://answers.netlify.com/t/has-anyone-got-puppeteer-working-on-netlify-node-18/96775/6 "2024-06-24T10:10:43Z")

</div>

As this thread showed up first when trying to solve my puppeteer problems, I would like to point out that there’s a netlify plugin now that installs Chromium and automatically adds an environment variable that you can then use to specify the executable path. The plugin is found here: [Chromium | Netlify Integrations](https://www.netlify.com/integrations/community-built/chromium-build-plugin/)
