Skip to content

Remove use of "--unsafe-perm" with npm #5791

Open

Description

@knolleary

This option is going away and we should review our use of it and ideally remove all traces of it.

This should cover website docs as well as any code in this repo.

Activity

  1. added this to the 5.0 milestone on Jun 9, 2026
  2. added theissue type on Jun 12, 2026
  3. nycynik commented on Aug 11, 2026

    @nycynik

    Just a happy user here, adding some information from the web. And a note, this one almost made me not use node-red to begin with. The flag is scary.

    Here is what the docs say it's for:

    The --unsafe-perm flag in npm allows package scripts to run with root/administrator privileges. It stops npm from switching the user ID (UID) and group ID (GID) down to a lower-level user during global installations. This prevents permission errors when building native modules as a root user

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

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions