在 Powershell 4 中,我正在尝试安装 GoogleCloud 模块。
我使用以下命令:
Install-Module GoogleCloud
它失败了:
PackageManagement\Install-Package : Illegal characters in path.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\PSModule.psm1:1417 char:21
+ $null = PackageManagement\Install-Package @PSBoundParameters
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exce
ption
+ FullyQualifiedErrorId : System.ArgumentException,Microsoft.PowerShell.Commands.TestModuleManifestCommand,Microso
ft.PowerShell.PackageManagement.Cmdlets.InstallPackage
我试过了:
将 Set-Location 切换为简单路径,例如 C:\jason
将 Env:path 切换到简单的路径,例如 C:\jason\