
What is the version of installed PnP PowerShell? This issue may be caused by the newer version of PnP PowerShell. You need to forcefully install the 1.12.0 version.
Please run following PowerShell.
1.Uninstall-Module PNP.PowerShell -AllVersions
2.[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
3.Install-PackageProvider -Name nuget -MinimumVersion 2.8.5.201 -force
4.Install-Module -Name "PnP.PowerShell" -RequiredVersion 1.12.0 -Force –AllowClobber
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.