PowerShell Script Doesn't Work in Strict Mode
nickcox opened this issue · 1 comments
nickcox commented
Thanks for this project - it's great! It doesn't seem to work with strict mode turned on, though.
~\code
❯ Set-StrictMode -Off
~\code
❯ nvm -v
1.3.0
~\code
❯ Set-StrictMode -Version latest
~\code
❯ nvm -v
OperationStopped: C:\Users\ncox\nvm\bin\nvm.ps1:12
Line |
12 | & $NODE_EXE $NVM_JS $args[0] $args[1] $args[2] $args[3]
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| Index was outside the bounds of the array.
jchip commented
fixed in 1.3.1