diff options
author | Robert Kowalski <rok@kowalski.gd> | 2014-12-13 04:36:24 +0300 |
---|---|---|
committer | Forrest L Norvell <forrest@npmjs.com> | 2014-12-19 16:11:51 +0300 |
commit | f5c534b711ab173129baf366c4f08d68f6117333 (patch) | |
tree | 2e4f14731acba8c9bc60a81360659fe6b358e800 /README.md | |
parent | adfddf3b682e0ae08e4b59d87c1b380dd651c572 (diff) |
remove recommendation to run as root from README
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 25 |
1 files changed, 0 insertions, 25 deletions
@@ -79,31 +79,6 @@ git, and mess with it directly. No. -## Permissions when Using npm to Install Other Stuff - -**tl;dr** - -* Use `sudo` for greater safety. Or don't, if you prefer not to. -* npm will downgrade permissions if it's root before running any build - scripts that package authors specified. - -### More details... - -As of version 0.3, it is recommended to run npm as root. -This allows npm to change the user identifier to the `nobody` user prior -to running any package build or test commands. - -If you are not the root user, or if you are on a platform that does not -support uid switching, then npm will not attempt to change the userid. - -If you would like to ensure that npm **always** runs scripts as the -"nobody" user, and have it fail if it cannot downgrade permissions, then -set the following configuration param: - - npm config set unsafe-perm false - -This will prevent running in unsafe mode, even as non-root users. - ## Uninstalling So sad to see you go. |