Does yarn have an equivalent to unsafe-perm=true?

Viewed 685

As far as I understand, I can add a .npmrc file to the root of my directory to prevent node packages to be installed as non-root user when using npm.

Is there an equivalent flag, option, or config when using yarn?

1 Answers

You can use yarn config set unsafe-perm true to get the equivalent result.

See Yarn Docs for config set and this Github answer explaining that unsafe-perm is false by default. Unfortunately, there isn't anything about it in the official docs.

Related