I am using Docker for the first time, and trying to self-host n8n, everything work good. However I cannot install puppeteer into the container/images.
What is the error message (if any)?
I tried everything from the internet, try creating a custom image with both puppeteer and n8n, try install puppeteer locally into n8n directory, try install globally, try install into container, try install into container root but still cannot use it in Code Node. PLEASE HELP!
Have you told n8n it can use the puppeteer node package by setting the NODE_FUNCTION_ALLOW_EXTERNAL env option? Did you also install puppeer for npm using npm i -g in hre container?
i added the env option and started a new container, installed puppeteer inside the docker desktop to the root directory then restart the container. still cannot be use
The data directory for n8n is /home/node/.n8n can you use this instead of /root/.n8n which will cause issues.
Mapping an external bind with the puppeteer package to n8n will also likely cause issues and is not recommended.
How did you originally add puppeteer to n8n did you make your own docker image which would be the recommended option?
Can you share the docker file you tried to use as well? I suspect this is still a configuration issue but we will need to work out exactly how you are adding it to work out where it is going wrong.