Commit 60b06c6b by Dane Springmeyer

prefer npm_config_tmp for tmp directory to place downloaded binary - closes #212

parent 95d8ddad
...@@ -188,7 +188,9 @@ if (opts.force) { ...@@ -188,7 +188,9 @@ if (opts.force) {
} catch (ex) { } catch (ex) {
var from = opts.binary.getRemotePath(); var from = opts.binary.getRemotePath();
var tmpdirbase = '/tmp/'; var tmpdirbase = '/tmp/';
if (os.tmpdir) { if (process.env.npm_config_tmp) {
tmpdirbase = process.env.npm_config_tmp
} else if (os.tmpdir) {
tmpdirbase = os.tmpdir(); tmpdirbase = os.tmpdir();
} }
var tmpdir = path.join(tmpdirbase,'node-sqlite3-'+opts.binary.configuration); var tmpdir = path.join(tmpdirbase,'node-sqlite3-'+opts.binary.configuration);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment