diff options
Diffstat (limited to 'utils/installer')
| -rw-r--r-- | utils/installer/install.ps1 | 11 | 
1 files changed, 7 insertions, 4 deletions
| diff --git a/utils/installer/install.ps1 b/utils/installer/install.ps1 index 0823032a..526239bb 100644 --- a/utils/installer/install.ps1 +++ b/utils/installer/install.ps1 @@ -1,3 +1,4 @@ +#Requires -Version 7.1  $ErrorActionPreference = "Stop" # exit when command fails  # set script variables @@ -139,9 +140,10 @@ function check_system_deps() {  }  function install_nodejs_deps() { +    $dep = "node"      try { -        check_system_dep "node" -        Invoke-Command npm install -g neovim tree-sitter-cli -ErrorAction Break +        check_system_dep "$dep" +        Invoke-Command -ScriptBlock { npm install --global neovim tree-sitter-cli } -ErrorAction Break      }      catch {          print_missing_dep_msg "$dep" @@ -149,9 +151,10 @@ function install_nodejs_deps() {  }  function install_python_deps() { +    $dep = "pip"      try { -        check_system_dep "pip" -        Invoke-Command python -m pip install --user pynvim -ErrorAction Break +        check_system_dep "$dep" +        Invoke-Command -ScriptBlock { python -m pip install --user pynvim } -ErrorAction Break      }      catch {          print_missing_dep_msg "$dep" | 
