Skip to content

pnpm: Permission denied #37808

Description

@escalate

Bug Description

Hello everyone,

In version 2.37.9, the pnpm installation of the n8nio/runners Docker image is broken. It is no longer possible to install any packages.

As a workaround, you can set the pnpm.cjs file to be executable.

chmod +x /usr/local/lib/node_modules/pnpm/bin/pnpm.cjs

Best regards,
Felix

To Reproduce

https://docs.n8n.io/deploy/host-n8n/configure-n8n/set-up-task-runners#id-1-extend-the-n8niorunners-image

FROM n8nio/runners:2.37.9
USER root
RUN cd /opt/runners/task-runner-javascript && pnpm add moment uuid
USER runner

Expected behavior

Packages are being installed without error

Debug Info

 > [2/3] RUN cd /opt/runners/task-runner-javascript       && pnpm add --allow-build=isolated-vm       uuid@14.0.2       xlsx@0.18.5:
0.110 /bin/sh: pnpm: Permission denied

Operating System

Linux

n8n Version

2.37.9

Node.js Version

26.5.1

Database

SQLite (default)

Execution mode

main (default)

Hosting

self hosted

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    closed:support-issueIssue is not a bug, This may include license, billing, cloud instance or how-to questions

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions