In Powershell 4, I'm attempting to install the GoogleCloud module.
I use the command:
Install-Module GoogleCloud It fails with:
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 I've tried:
switching Set-Location to a simple path, i.e. C:\jason
switching the Env:path to a simple lath, i.e. C:\jason\
(Get-Module PowerShellGet).Version.ToString(). Maybe thatUpdate-Module -Name PowerShellGet -Forcecould help?Install-Module PowerShellGet -Forceand then restart PowerShell session (should install version2.0.4).