Skip to content

Conversation

@kaizhu256
Copy link
Contributor

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

@kaizhu256 kaizhu256 requested a review from a team as a code owner November 18, 2020 20:46
@darcyclarke darcyclarke added Release 7.x work is associated with a specific npm 7 release release: next These items should be addressed in the next release labels Nov 24, 2020
@ruyadorno ruyadorno mentioned this pull request Nov 27, 2020
@ruyadorno ruyadorno closed this in 1875347 Nov 27, 2020
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release: next These items should be addressed in the next release Release 7.x work is associated with a specific npm 7 release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants