n8n-nodes-puppeteer
n8n-nodes-puppeteer copied to clipboard
Compatibility issue with n8n 0.210.0 and above
Hi, it looks like the last compatible n8n version is 0.209.4 - later versions have dependency compatibility issues. The installation of the packages results in:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/ioredis
npm ERR! ioredis@"^5.0.0" from [email protected]
npm ERR! node_modules/bull
npm ERR! bull@"^4.10.2" from the root project
npm ERR! ioredis@"^5.2.4" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peerOptional ioredis@"^4.28.3" from [email protected]
npm ERR! node_modules/typeorm
npm ERR! typeorm@"0.2.45" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/ioredis
npm ERR! peerOptional ioredis@"^4.28.3" from [email protected]
npm ERR! node_modules/typeorm
npm ERR! typeorm@"0.2.45" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
This is the Dockerfile we're using to build a puppeteer enabled image for n8n. Build it with docker build -t n8n-local .
:
FROM n8nio/n8n:0.210.2
# Installs latest Chromium package
RUN apk add --no-cache \
chromium \
nss \
freetype \
harfbuzz \
ttf-freefont \
yarn
# Tell Puppeteer to skip installing Chrome. We'll be using the installed package.
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \
PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
# Install n8n-nodes-puppeteer
RUN cd /usr/local/lib/node_modules/n8n \
&& npm install n8n-nodes-puppeteer
# Install fonts
RUN apk --no-cache add --virtual fonts msttcorefonts-installer fontconfig \
&& update-ms-fonts \
&& fc-cache -f \
&& apk del fonts \
&& find /usr/share/fonts/truetype/msttcorefonts/ -type l -exec unlink {} \; \
&& rm -rf /root /tmp/* /var/cache/apk/* && mkdir /root
Same issue here.
I made it works on a debian python based dockerfile (https://github.com/naskio/n8n-nodes-python).
I was able to use the node but I got this error :
Failed to launch the browser process! [No usable sandbox! Update your kernel or see https://chromium.googlesource.com/chromium/src/+/main/docs/linux/suid_sandbox_development.md for more information on developing with the SUID sandbox. If you want to live dangerously and need an immediate workaround, you can try using --no-sandbox.
There's 3 ways of fixing this :
- sysctl -w kernel.unprivileged_userns_clone=1 ==> Result to openning vulnerabilities on your host
- --no-sandbox ==> same like it's said in the error message
- Follow this guide : https://chromium.googlesource.com/chromium/src/+/main/docs/linux/suid_sandbox_development.md
Are you still having issue to build the docker image ? I can share mine if needed
I think its not working on 1.1+
@Loocos Mind sharing your docker file?