Skip to content

Commit 1875347

Browse files
kaizhu256ruyadorno
authored andcommitted
doc: remove doc on obsolete unsafe-perm flag
replace obsolete doc about root-privilege with changelog notes @ https://github.com/npm/cli/blob/e1a2837809a76896523cdfcbce7537e46f71d67e/CHANGELOG.md#v700-beta0-2020-08-04 PR-URL: #2196 Credit: @kaizhu256 Close: #2196 Reviewed-by: @darcyclarke
1 parent 27a4c19 commit 1875347

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

docs/content/using-npm/scripts.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,10 +122,8 @@ npm will default some script values based on package contents.
122122

123123
### User
124124

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.
125+
When npm is run as root, scripts are always run with the effective uid
126+
and gid of the working directory owner.
129127

130128
### Environment
131129

0 commit comments

Comments
 (0)