I am facing an issue with installing SharePoint Hosted APP using below PNP Script
Connect-PnPOnline -url $SiteURL -ClientID $ClientID -ClientSecret $ClientSecret
Install-PnPApp -Identity $RERHostedAppId.
Behavior : - After executing the script, the app starts installing in SP Site, but it takes a long time to install, hence a time-out error occurs. - It gets installed instantly on clicking retry.
Note: Above script works properly, if we install SPFX App in place of Hosted App or use -UseWebLogin or interactive in place of client and secret.
Some Additional Information