![安装模块时路径中的非法字符](https://linux22.com/image/734595/%E5%AE%89%E8%A3%85%E6%A8%A1%E5%9D%97%E6%97%B6%E8%B7%AF%E5%BE%84%E4%B8%AD%E7%9A%84%E9%9D%9E%E6%B3%95%E5%AD%97%E7%AC%A6.png)
在 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\