Skip to content

Commit 545e066

Browse files
committed
1 parent 5b40229 commit 545e066

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/bootstrap.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,12 @@ exports.configurePortable = function () {
263263
}
264264

265265
if (isTempPortable) {
266-
process.env[process.platform === 'win32' ? 'TEMP' : 'TMPDIR'] = portableTempPath;
266+
if (process.platform === 'win32') {
267+
process.env['TMP'] = portableTempPath;
268+
process.env['TEMP'] = portableTempPath;
269+
} else {
270+
process.env['TMPDIR'] = portableTempPath;
271+
}
267272
}
268273

269274
return {

0 commit comments

Comments
 (0)