N8n-nodes-playwright do not seem to be adapted for Mac, or am I missing something?

Describe the problem/error/question

Hi! I tried to switch from Puppeteer nodes to Playwright, but stumbled upon number of issues which seem to be related to Mac platform, which is a bit confusing as I expected myself to be not the first Mac user of n8n with Playwright.

The problem is that n8n-nodes-playwright package seems to be not adapted to Mac paths in comparison to Linux ones.

For example when it installs - it puts cache files into “/Users/myuser/Library/Caches/ms-playwright” but then looks for them under “/Users/myuser/.cache/ms-playwright”, which are not there. I resolved this problem by putting a corresponding symlink.

Second problem I encountered was that when one tries to execute a Playwright n8n node - it looks for Chrome under “browsers/chromium-1194/chrome-mac/Chrome“ but on Mac Chrome installs as “browsers/chromium-1194/chrome-mac/Chromium.app”. And this problem I could not resolve with a symlink because n8n launch automatically reinstalls Chrome and clears the aforementioned path.

And I could not find any settings or a config file to modify to put the right Chromium path for Playwright which is not getting reinstalled upon n8n start.

Could somebody point me to the right direction ? (launching a linux or windows host is plan C)

What is the error message (if any)?

File or path not found in both cases.

Please share your workflow

Probably no reason to share a workflow as it consists of a single "Playwright Navigate" node

Share the output returned by the last node

n/a

Information on your n8n setup

  • n8n version: 1.118.2
  • Database (default: SQLite): n/a
  • n8n EXECUTIONS_PROCESS setting (default: own, main): n/a
  • Running n8n via (Docker, npm, n8n cloud, desktop app): npm
  • Operating system: Mac