InstallModuleFromGitHub
InstallModuleFromGitHub copied to clipboard
cant install github branch
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
- ... $dest = Join-Path -Path $dest -ChildPath $ModuleVersion
-
~~~~~~~~~~~~~~
- CategoryInfo : InvalidArgument: (:) [Join-Path], ParameterBindingException
- FullyQualifiedErrorId : CannotConvertArgument,Microsoft.PowerShell.Commands.JoinPathCommand
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
- ... $null = Copy-Item "$sourcePath*" $dest -Force -Recurse
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- CategoryInfo : ObjectNotFound: (C:\Users\byran...nGet.Client\src:String) [Copy-Item], ItemNotFoundExce ption
- FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.CopyItemCommand