doc: remove doc on obsolete unsafe-perm flag#2196
Closed
kaizhu256 wants to merge 1 commit intonpm:latestfrom
Closed
doc: remove doc on obsolete unsafe-perm flag#2196kaizhu256 wants to merge 1 commit intonpm:latestfrom
unsafe-perm flag#2196kaizhu256 wants to merge 1 commit intonpm:latestfrom
Conversation
replace obsolete doc about root-privilege with changelog notes @ https://github.com/npm/cli/blob/e1a2837809a76896523cdfcbce7537e46f71d67e/CHANGELOG.md#v700-beta0-2020-08-04
darcyclarke
approved these changes
Nov 24, 2020
Merged
ofhouse
added a commit
to vercel/vercel
that referenced
this pull request
Nov 20, 2025
Removes `--unsafe-perm` flag from `npm install` command as it prints a warning message starting with npm v11 (which comes bundled with node24): ``` npm warn Unknown cli config "--unsafe-perm". This will stop working in the next major version of npm. ``` The flag was removed in npm v7 which we don't use in build-container (minimum version is v10 / node20) and therefore safe to remove here: npm/cli#2196 From the [npm Changelog](https://github.com/npm/cli/blob/e1a2837809a76896523cdfcbce7537e46f71d67e/CHANGELOG.md#all-lifecycle-scripts): > The `user`, `group`, `uid`, `gid`, and `unsafe-perms` configurations are no longer relevant. When npm is run as root, scripts are always run with the effective `uid` and `gid` of the working directory owner.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
replace obsolete doc about root-privilege with changelog notes @ https://github.com/npm/cli/blob/e1a2837809a76896523cdfcbce7537e46f71d67e/CHANGELOG.md#v700-beta0-2020-08-04
the current doc about npm running with root-privilege is incorrect.
References