gpt4 book ai didi

powershell - "No process is on the other end of the pipe"Write-Verbose Windows 10

转载 作者:行者123 更新时间:2023-12-04 19:41:58 35 4
gpt4 key购买 nike

当我老板运行 PowerShell 命令(构建我们的软件)时,我正在尝试解决他计算机上的错误。他是第一个运行 Windows 10 的开发人员。所有其他人仍在使用 Win 8.1。

错误看起来像 Write-Verbose 在 Windows 10 上不起作用。但我觉得很难相信:

powershell.exe -NoLogo -NoProfile -NonInteractive -WindowStyle Hidden 
-ExecutionPolicy RemoteSigned
-Command "Import-Module 'X:\ReleaseRoot\CompanyName\Deployment\CompanyName.Build'
-DisableNameChecking -Force; Generate-SvDeployManifest " -verbose
Write-Verbose : The Win32 internal error "No process is on the other end of
the pipe" 0xE9 occurred while getting console output buffer information.
Contact Microsoft Customer Support Services.
At X:\ReleaseRoot\CompanyName\Deployment\CompanyName.Build\Functions\Nuget\Restore-NugetPackages.ps1:23 char:9
+ Write-Verbose "Restoring packages from $_"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ Category Info : ResourceUnavailable: (:) [Write-Verbose], HostException
+ FullyQualifiedErrorId : GetConsoleScreenBufferInfo,Microsoft.PowerShell.Commands.WriteVerboseCommand

失败的 PowerShell 函数非常简单:

function Restore-NugetPackages
{
$packageConfigs = @("$RootFolder\Build\nuget\packages.config")

$packageConfigs | ForEach {

Write-Verbose "Restoring packages from $_"
& $RootFolder\Build\nuget\nuget.exe restore $_ -PackagesDirectory "$RootFolder\Build\packages" | Write-Verbose

# Output the versions of the nuget packages
([xml] ( Get-Content $_ )).packages.package | Select id, version
}
}

此功能在 Windows 8.1 上完美运行。

我被难住了。有什么线索吗?

最佳答案

他使用的是 32 位还是 64 位版本的 powershell。与 32 位有一些不一致。似乎没有详细的流。

关于powershell - "No process is on the other end of the pipe"Write-Verbose Windows 10,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32832967/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com