小编Ros*_*ski的帖子

PowerShell 安装模块命令未失败但未安装模块

我正在尝试将 SharePoint 的 PnP 在线命令安装到我的 PowerShell 上,但是以下命令似乎不起作用;

Install-Module -name SharePointPnPPowerShellOnline -scope CurrentUser
Run Code Online (Sandbox Code Playgroud)

该命令似乎运行良好,没有出现任何错误,但是当我尝试运行应该已安装的命令时,我收到一条错误消息,指出找不到命令。

connect-pnponline : The term 'connect-pnponline' 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
+ connect-pnponline
+ ~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (connect-pnponline:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
Run Code Online (Sandbox Code Playgroud)

我查看了所有模块文件夹,但该模块不在其中任何一个中。我将我的环境路径与具有此功能的同事进行了比较,发现它们是相同的。

有谁知道可能是什么原因造成的?

powershell sharepoint-online powershellget

7
推荐指数
1
解决办法
7809
查看次数