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
path: root/npm.js
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2011-03-11 12:46:25 +0300
committerisaacs <i@izs.me>2011-03-22 01:56:02 +0300
commit1b291e6a9261c400c333d426204d469755104af1 (patch)
treeb59fdb1e3cb2a2dc891cbda7d86b6a0d326cb482 /npm.js
parent47f4c5e2bb432cfeea397bd9a6507e288d8331e6 (diff)
If a prefix explicitly set, then be global about it
Diffstat (limited to 'npm.js')
-rw-r--r--npm.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/npm.js b/npm.js
index 952e36445..d76a93dd5 100644
--- a/npm.js
+++ b/npm.js
@@ -180,6 +180,7 @@ npm.load = function (conf, cb_) {
log.verbose("node symlink", node)
process.execPath = node
}
+ if (conf.hasOwnProperty("prefix")) conf.global = true
ini.resolveConfigs(conf, function (er) {
if (er) return handleError(er)
var p