例如,我使用了 Install-Module TestModule,它询问我问题,然后我按“是”。在我尝试 Import-Module TestModule 之后
Import-Module : The specified module 'TestModule' was not loaded because no valid module file was found in any
module directory.
At line:1 char:1
+ Import-Module TestModule
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (TestModule :String) [Import-Module], FileNotFoundException
+ FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand