-
Notifications
You must be signed in to change notification settings - Fork 399
Closed
Description
I installed PSSA with
Install-Module -Name PSScriptAnalyzer -Scope CurrentUser
Looks fine:
Get-InstalledModule
Version Name Repository Description
------- ---- ---------- -----------
5.4.1 Pester PSGallery Pester provides a framework for running BDD styl...
0.14.2 platyPS PSGallery Generate PowerShell External Help files from Mar...
1.0.5 PSDeploy PSGallery Module to simplify PowerShell based deployments
1.24.0 PSScriptAnalyzer PSGallery PSScriptAnalyzer provides script analysis and ch...
But now I cannot load the module and its commands are not available through auto-completion.
> Import-Module PSScriptAnalyzer -Verbose
Import-Module : The specified module 'PSScriptAnalyzer' was not loaded because no valid module file was found in any
module directory.
At line:1 char:1
+ Import-Module PSScriptAnalyzer -Verbose
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (PSScriptAnalyzer:String) [Import-Module], FileNotFoundException
+ FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
> Invoke-ScriptAnalyzer
Invoke-ScriptAnalyzer : The term 'Invoke-ScriptAnalyzer' is not recognized as the name of a cmdlet, function, script
file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct
and try again.
At line:1 char:1
+ Invoke-ScriptAnalyzer
+ ~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Invoke-ScriptAnalyzer:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Any ideas what is going wrong here?
Thanks
Metadata
Metadata
Assignees
Labels
No labels