hjorslev / SteamPS

Module that utilizes PowerShell as a wrapper for SteamCMD and interacts with various Steam APIs.
https://www.powershellgallery.com/packages/SteamPS
MIT License
71 stars 14 forks source link

Install-SteamCMD fails, Test-Path: Cannot bind argument #103

Open suckmyhardware opened 2 months ago

suckmyhardware commented 2 months ago

Describe "Module Bug or Issue"

Installing SteamCMD via Powershell. First installing the SteamPS, which is fine. As soon as I start installing SteamCMD through Powershell it fails.

Context "The Problem"

Test-Path : Cannot bind argument to parameter 'Path' because it is null. At C:\Program Files\WindowsPowerShell\Modules\SteamPS\4.1.0\SteamPS.psm1:1275 char:29 if (Test-Path -Path (Get-SteamPath).Executable) { CategoryInfo : InvalidData: (:) [Test-Path], ParameterBindingValidationException FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.TestPathCommand

Corresponding line in the SteamPS.psm1:

if (Test-Path -Path (Get-SteamPath).Executable) {

Output of Get-Module:

Get-Module -Name SteamPS -ListAvailable | Select-Object -Property Name, Version

Name Version SteamPS 4.1.0

hjorslev commented 1 month ago
  1. What OS are you running?
  2. Could you lookup your Environment Variables in Windows Settings and see if SteamCMD is added to the path there? image