dfinke / InstallModuleFromGitHub

Install PowerShell Modules from GitHub
Apache License 2.0
87 stars 31 forks source link

cant install github branch #29

Open SlimeV2 opened 1 year ago

SlimeV2 commented 1 year ago

PS C:\WINDOWS\system32> Install-Module -Name InstallModuleFromGitHub Untrusted repository You are installing the modules from an untrusted repository. If you trust this repository, change its InstallationPolicy value by running the Set-PSRepository cmdlet. Are you sure you want to install the modules from 'PSGallery'? [Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): a PS C:\WINDOWS\system32> Install-ModuleFromGitHub -githubrepo "microsoft/winget-cli" -branch "master" Join-Path : Cannot convert 'System.Object[]' to the type 'System.String' required by parameter 'ChildPath'. Specified method is not supported. At C:\Program Files\WindowsPowerShell\Modules\InstallModuleFromGitHub\1.6.0\InstallModuleFromGitHub.psm1:94 char:62

Copy-Item : Cannot find path 'C:\Users\byran\AppData\Local\Temp\3F7EC4B0474BBFB7A40FE691848AA28D143B4954AD76A1A7C19B9C2 71A2499F2\microsoft-winget-cli-5d0e02b\src\PowerShell\Microsoft.WinGet.Client\Module C:\Users\byran\AppData\Local\Temp\ 3F7EC4B0474BBFB7A40FE691848AA28D143B4954AD76A1A7C19B9C271A2499F2\microsoft-winget-cli-5d0e02b\src\PowerShell\Microsoft. WinGet.DSC C:\Users\byran\AppData\Local\Temp\3F7EC4B0474BBFB7A40FE691848AA28D143B4954AD76A1A7C19B9C271A2499F2\microsoft -winget-cli-5d0e02b\tools\PowerShell\Microsoft.WinGet\src C:\Users\byran\AppData\Local\Temp\3F7EC4B0474BBFB7A40FE691848 AA28D143B4954AD76A1A7C19B9C271A2499F2\microsoft-winget-cli-5d0e02b\tools\PowerShell\Microsoft.WinGet.Client\crescendo C :\Users\byran\AppData\Local\Temp\3F7EC4B0474BBFB7A40FE691848AA28D143B4954AD76A1A7C19B9C271A2499F2\microsoft-winget-cli- 5d0e02b\tools\PowerShell\Microsoft.WinGet.Client\src' because it does not exist. At C:\Program Files\WindowsPowerShell\Modules\InstallModuleFromGitHub\1.6.0\InstallModuleFromGitHub.psm1:104 char:29