n8n-nodes-puppeteer icon indicating copy to clipboard operation
n8n-nodes-puppeteer copied to clipboard

Compatibility issue with n8n 0.210.0 and above

Open fcecagno opened this issue 1 year ago • 4 comments

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

fcecagno avatar Jan 13 '23 17:01 fcecagno