Skip to content

Commit

Permalink
doc: remove doc on obsolete unsafe-perm flag
Browse files Browse the repository at this point in the history
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: npm#2196
Credit: @kaizhu256
Close: npm#2196
Reviewed-by: @darcyclarke
  • Loading branch information
kaizhu256 authored and ruyadorno committed Nov 27, 2020
1 parent 27a4c19 commit 1875347
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/content/using-npm/scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,8 @@ npm will default some script values based on package contents.

### User

If npm was invoked with root privileges, then it will change the uid
to the user account or uid specified by the `user` config, which
defaults to `nobody`. Set the `unsafe-perm` flag to run scripts with
root privileges.
When npm is run as root, scripts are always run with the effective uid
and gid of the working directory owner.

### Environment

Expand Down

0 comments on commit 1875347

Please sign in to comment.