PsAzureDevOps icon indicating copy to clipboard operation
PsAzureDevOps copied to clipboard

Unable to load the module (installed from PSGallery)

Open jkavanagh58 opened this issue 7 years ago • 2 comments

I am troubleshooting but I am seeing this on two different machines. Whether I am trying to run one of the CMDlets or Import-Module errors are similar

Update-FormatData : Cannot find path 'C:\Program Files\WindowsPowerShell\Modules\psazuredevops\0.3.0\formats' because it does not exist.

import-module : The module to process 'PsAzureDevOps.psm1', listed in field 'ModuleToProcess/RootModule' of module manifest 'C:\Program Files\WindowsPowerShell\Modules\psazuredevops\0.3.0\psazuredevops.psd1' was not processed because no valid module was found in any module directory. At line:1 char:1

  • import-module psazuredevops -verbose -force
  •   + CategoryInfo          : ResourceUnavailable: (psazuredevops:String) [Import-Module], PSInvalidOperationException
      + FullyQualifiedErrorId : Modules_ModuleFileNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
    
    
    

At C:\Program Files\WindowsPowerShell\Modules\psazuredevops\0.3.0\PsAzureDevOps.psm1:20 char:1

  • Update-FormatData -PrependPath "$moduleRoot\formats*.ps1xml"`
  •   + CategoryInfo          : InvalidOperation: (C:\Program File...ormats\*.ps1xml:String) [Update-FormatData], ItemNo 
     tFoundException
      + FullyQualifiedErrorId : FormatPrependPathException,Microsoft.PowerShell.Commands.UpdateFormatDataCommand
    
    

jkavanagh58 avatar Dec 18 '18 13:12 jkavanagh58

Thanks for posting, I will investigate

mmanela avatar Dec 19 '18 15:12 mmanela

@jkavanagh58 I published 0.3.1, please test out and let me know if you hit any other issues

mmanela avatar Dec 19 '18 19:12 mmanela