diff options
author | isaacs <i@izs.me> | 2012-06-27 08:54:41 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-06-27 08:54:41 +0400 |
commit | c174a639a451d715c15d161d179fc8360b0bb3ef (patch) | |
tree | d7485cf7d36ddaa7a113716abf74955dfc61b0fe /lib/npm.js | |
parent | df97de6903322b52703a07faaf4e9f6c72dbf021 (diff) |
Include pid in npm temp dir
Diffstat (limited to 'lib/npm.js')
-rw-r--r-- | lib/npm.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/npm.js b/lib/npm.js index 5b257d673..15d02133d 100644 --- a/lib/npm.js +++ b/lib/npm.js @@ -443,7 +443,7 @@ Object.defineProperty(npm, "cache", var tmpFolder Object.defineProperty(npm, "tmp", { get : function () { - if (!tmpFolder) tmpFolder = "npm-"+Date.now() + if (!tmpFolder) tmpFolder = "npm-" + process.pid() return path.resolve(npm.config.get("tmp"), tmpFolder) } , enumerable : true |