Playwright: Permission denied render (while deploying node+playwright)

Hi,

I’m trying to deploy a simple node app with playwright on it, and i keep getting
playwright: Permission denied render” on my build logs, and the build fails.

i have seen i’m not the first to run into this problem, but the previous solutions did not work for me
here is what i have done so far:

  1. i added posinstall to my scripts in package.json - which caused another issue so I deleted it. (“postinstall”: “node node_modules/playwright/cli.js install chromium”)

  2. I added a render-build.sh file in my directory:
    set -e
    apt-get update
    apt-get install -y libnss3 libatk-bridge2.0-0 libxkbcommon-x11-0 libdrm2 libgbm1
    npx playwright install chromium

  3. on Environment - PLAYWRIGHT_BROWSERS_PATH = /opt/render/project/.cache/playwright

is there anything else I can try?

Thanks!

After too long, I solved the issue after switching to Docker. you can ask chatgpt to guide you on that.

1 Like