Connect-PnPOnline : The ‘Connect-PnPOnline’ command was found in the module ‘SharePointPnPPowerShellOnline’

In this PowerShell SharePoint tutorial, we will discuss how to resolve an error Connect-PnPOnline : The ‘Connect-PnPOnline’ command was found in the module ‘SharePointPnPPowerShellOnline’, ut the module could not be loaded. For more information, run Import-Module SharePointPnPPowerShellOnline.

The error comes when I run the below command to connect to the SharePoint Online site using PnP PowerShell cmdlets.

Connect-PnPOnline –Url https://onlysharepoint2013.sharepoint.com/sites/SharePointSky –Credentials (Get-Credential)

This is how the error looks like below:

Connect-PnPOnline The Connect-PnPOnline command was found in the module SharePointPnPPowerShellOnline
Connect-PnPOnline The Connect-PnPOnline command was found in the module SharePointPnPPowerShellOnline

Connect-PnPOnline : The ‘Connect-PnPOnline’ command was found in the module ‘SharePointPnPPowerShellOnline’

The error usually comes if there is a conflict with the PnP SharePoint version that installed in the machine.

I installed Install-Module SharePointPnPPowerShellOnline in the same machine where I have SharePoint 2016 is installed.

I tried to reinstall Install-Module SharePointPnPPowerShellOnline and then when I run the command the issue got resolved.

You may like following SharePoint PowerShell tutorials:

Hope this SharePoint tutorial helps to resolve error Connect-PnPOnline The Connect-PnPOnline command was found in the module SharePointPnPPowerShellOnline.

>