flofreud / posh-gvm

GVM for Powershell
Apache License 2.0
210 stars 60 forks source link

posh-gvm install error #29

Open Sinchard opened 6 years ago

Sinchard commented 6 years ago

When i installed posh-gvm, i got following info:

(new-object Net.WebClient).DownloadString('https://raw.githubusercontent.com/flofreud/posh-gvm/master/GetPoshGvm.ps1') | iex
Downloading posh-gvm from https://github.com/flofreud/posh-gvm/archive/master.z
ip
posh-gvm installed!
Please see https://github.com/flofreud/posh-gvm#usage for details to get starte
d.
WARN: Execute 'Import-Module posh-gvm -Force' so changes take effect!

Then i execute 'Import-Module posh-gvm -Force', Test-Path : Illegal character in the path

+         if ( !( Test-Path "$Global:PGVM_DIR\$candidate" ) ) {
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (C:\Users\John\.p...ransitional\ 
   EN":String) [Test-Path],ArgumentException
    + FullyQualifiedErrorId : ItemExistsArgumentError,Microsoft.PowerShell.Com 
   mands.TestPathCommand

I did a lot search, but got nothing useful.