Error deploying npm package that uses puppeteer

This topic was automatically generated from Slack. You can find the original thread here.

ForYourIT : Hey there, hope you doing great. Can somebody assit me with this? Is it an npm package that is not public or something and can’t be used?

Error
Command failed: upm -l nodejs add --guess --> npm init -y Wrote to /tmp/ee/package.json: { "name": "ee", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], "author": "", "license": "ISC" } β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ npm update check failed β”‚ β”‚ Try running with sudo or get access β”‚ β”‚ to the local update config store via β”‚ β”‚ sudo chown -R $USER:$(id -gn $USER) /home/sbx_user1051/.config β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ --> npm install html-pdf-node > puppeteer@5.5.0 install /tmp/ee/node_modules/puppeteer > node install.js ERROR: Failed to set up Chromium r818858! Set "PUPPETEER_SKIP_DOWNLOAD" env variable to skip download. [Error: ENOSPC: no space left on device, write] { errno: -28, code: 'ENOSPC', syscall: 'write' } npm WARN ee@1.0.0 No description npm WARN ee@1.0.0 No repository field. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! puppeteer@5.5.0 install: `node install.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the puppeteer@5.5.0 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /tmp/npm_cache/_logs/2021-05-06T10_33_16_703Z-debug.log exit status 1
1 Like

Dylan Sather (Pipedream) : it looks like the package you’re trying to install has a dependency on puppeteer, which doesn’t currently work in the Pipedream environment.

Are you trying to generate a PDF? If you tell me more about your use case I may be able to suggest a workaround

1 Like

ForYourIT : Thank you , yes just taking a look if we can create a pdf from html with node

Dylan Sather (Pipedream) : Most of the packages for this require a browser to run and so suffer from the same issue you hit. Internally, we use Browserless for this - they host Puppeteer and expose services like this via API. It’s a paid service, but relatively cheap.

The Pipedream Browserless action to generate a PDF is actually not working at the moment, but we’ll address that ASAP. Are you comfortable working with those API docs for now?

Let me know if that helps.

ForYourIT : Cool thank you! I will take a look at it

I ran into this issue when trying to install the pdffiller package. Fortunately I found an alternative that installs successfully: pdf-lib lets me add data to fillable pdfs in Pipedream!

1 Like