You need to create a custom image that has that library installed. Then you have to the env variable NODE_FUNCTION_ALLOW_EXTERNAL with the name of the package.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Install npm packet for use via “Function Item” | 1 | 2308 | October 1, 2020 | |
| Puppeteer in N8N | 19 | 7225 | October 2, 2024 | |
| How to add Puppeteer to Docker Container so I can run it in n8n Code Node Self-Hosting | 11 | 2749 | September 27, 2024 | |
| PuppeteerJS Execution (or other Web Scraping) | 43 | 9430 | May 28, 2023 | |
| Puppeteer in n8n V2 doesn't work anymore | 13 | 1938 | January 19, 2026 |