We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c70860f commit 86af6a8Copy full SHA for 86af6a8
lib/shell-ops.js
@@ -30,10 +30,15 @@ module.exports = {
30
*/
31
getModifiedEnv(platform = process.platform, defaultEnv = process.env) {
32
const env = {},
33
- pathSeparator = platform === "win32" ? ";" : ":";
+ isWindows = platform === "win32",
34
+ pathSeparator = isWindows ? ";" : ":";
35
36
Object.keys(defaultEnv).forEach(key => {
- env[key] = defaultEnv[key];
37
+
38
+ // environmental variable names are case-insensitive in windows
39
+ const compatKey = isWindows ? key.toUpperCase() : key;
40
41
+ env[compatKey] = defaultEnv[key];
42
});
43
44
// modify PATH to use local node_modules
0 commit comments