Skip to content

Commit aa35865

Browse files
committed
Attach null stdio to pass nvm-windows check
https://github.com/coreybutler/nvm-windows/blob/6284f0ec44040764dc269144a3433664bf089646/src/nvm.go#L188 https://github.com/coreybutler/nvm-windows/blob/6284f0ec44040764dc269144a3433664bf089646/src/nvm.go#L73 In nvm-windows, if stdout isn't a character device, it shows an error dialog and waits for user input before terminating Attach /dev/null to make sure that nvm-windows doesn't need intervention (https://nodejs.org/api/child_process.html#optionsstdio)
1 parent 46857d7 commit aa35865

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function hasNvm() {
4242
// check for existance of nvm
4343
execSync(
4444
'nvm',
45-
{ stdio:[] } // don't care about output
45+
{ stdio: 'ignore' } // don't care about output
4646
);
4747
} catch (e) {
4848
// no nvm,

0 commit comments

Comments
 (0)