Error: Error occurred in deployment step 'Install app for SharePoint': Sideloading of apps is not enabled on this site.
I was trying to deploy a app in to SharePoint Online, then i got above error.
Solution: I have enabled Sideloading, then it resolved my problem.
Open: sharepoint online Management Shell
Copy below script and paste it sharepoint online Management Shell.
It will ask SPO Site url. Enter SPO url.
It will ask SPO Administrator User name and password. Enter user name and password.
You will see:
SideLoadinf feature enabled on the site.....
That's it. Now deploy your app in to SharePoint Online.