We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
unsafe-perm
1 parent 27a4c19 commit 1875347Copy full SHA for 1875347
docs/content/using-npm/scripts.md
@@ -122,10 +122,8 @@ npm will default some script values based on package contents.
122
123
### User
124
125
-If npm was invoked with root privileges, then it will change the uid
126
-to the user account or uid specified by the `user` config, which
127
-defaults to `nobody`. Set the `unsafe-perm` flag to run scripts with
128
-root privileges.
+When npm is run as root, scripts are always run with the effective uid
+and gid of the working directory owner.
129
130
### Environment
131
0 commit comments