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>2010-10-20 02:50:05 +0400
committerisaacs <i@izs.me>2010-10-20 02:50:05 +0400
commit4497de731ea9f1e29a3e37c53f3943926b83fbc9 (patch)
tree8c4d21357cb6e595c88179f95a741aa084fae494 /lib/utils/default-config.js
parent3e1ed3cb6f8b424894f748fb9e70ae5862d7b81f (diff)
Fix #293. Use the TMPDIR if defined, or /tmp as the default temporary folder.
Diffstat (limited to 'lib/utils/default-config.js')
-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 eb085f5a4..a55c5fb95 100644
--- a/lib/utils/default-config.js
+++ b/lib/utils/default-config.js
@@ -26,6 +26,7 @@ module.exports =
, loglevel : "info"
, manroot : path.join(process.execPath, "..", "..", "share", "man")
, editor : process.env.EDITOR
+ , tmproot : (process.env.TMPDIR || "/tmp")
//
// TODO: Fix when node's SSL client can upload properly.