I'm attempting to create a plugin on Bubble.io that requires the Puppeteer library.

Hello, I’m attempting to create a plugin on Bubble.io that requires the Puppeteer library. During the installation process within the Bubble plugin editor, I’m encountering an error that prevents the package from being built. The full error message I receive is:

There was an error building your package: Command failed: cd /tmp/bubble_lambda && npm install
npm ERR! code 1
npm ERR! path /tmp/bubble_lambda/node_modules/puppeteer
npm ERR! command failed
npm ERR! command sh -c node install.mjs
npm ERR! ERROR: Failed to set up Chrome r119.0.6045.105! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download.
npm ERR! [Error: ENOSPC: no space left on device, write] {...}

It seems the issue is related to a lack of space on the device, as indicated by the ENOSPC error. Also, there’s a suggestion to set the PUPPETEER_SKIP_DOWNLOAD environment variable to skip Chrome’s download, which is a step needed for Puppeteer’s installation.

Do you have any recommendations on how I can resolve this space issue on the Bubble environment device? Is there a way to configure the PUPPETEER_SKIP_DOWNLOAD environment variable through the Bubble editor, or is there an alternative workaround so that I can proceed with the Puppeteer library installation and my plugin creation?

Thank you in advance for any assistance!"

This is probably not going to work with a bubble plugin. I suppose the postinstall script downloading the browser that fails.
You should move this logic to another platform or search for running puppeteer on aws lambda and see if you can manage to follow instructions with the limited plugin environment.

1 Like

Yup +1 you will have to run the code somewhere else. I have never been able to get puppeteer to work within a plug-in.

This topic was automatically closed after 70 days. New replies are no longer allowed.