Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2011-02-19 07:59:57 +0300
committerisaacs <i@izs.me>2011-02-19 08:02:33 +0300
commitdae3259fd17866c189c5e8b3a7968f515b1af4ca (patch)
treeb13836dd9204ac305ab3e452be01465822884b03
parent31e4478c8a55785c550f13c347ce41c37390b0e0 (diff)
You can't please everyone.
Don't try to be secure if it'll fail. If someone really wants to encourage this all the time, then they can do `npm config set unsafe-perm false` explicitly. In the npm 1.0 future, it will probably require sudo for global installing no matter what, and use this behavior for local installing. Since so many people have npm installing in their home dir, requiring sudo is causing more trouble than it's worth.
-rw-r--r--lib/utils/default-config.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/utils/default-config.js b/lib/utils/default-config.js
index b4ae5701a..21a0b3818 100644
--- a/lib/utils/default-config.js
+++ b/lib/utils/default-config.js
@@ -50,6 +50,7 @@ module.exports =
|| process.platform === "cygwin"
|| !( process.getuid && process.setuid
&& process.getgid && process.setgid )
+ || process.getuid() !== 0
, "update-dependents" : true
, usage : false
, user : "nobody"