We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
sindresorhus
Learn more about funding links in repositories.
Report abuse
1 parent 2a8ec70 commit 8e69be4Copy full SHA for 8e69be4
index.js
@@ -169,7 +169,7 @@ const baseOpen = async options => {
169
170
command = isWsl
171
? `${mountPoint}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`
172
- : `${process.env.SYSTEMROOT}\\System32\\WindowsPowerShell\\v1.0\\powershell`;
+ : `${process.env.SYSTEMROOT || process.env.windir || 'C:\\Windows'}\\System32\\WindowsPowerShell\\v1.0\\powershell`;
173
174
cliArguments.push(
175
'-NoProfile',
0 commit comments