"Sideloading of apps is not enabled on this site"

 

In order to publish a SharePoint hosted app to a site collection the site must be based on the developer site template or have the “Developer” Feature enabled on it.  The “Developer” Feature is marked as hidden in its definition so you must use PowerShell to enable the Feature. 

Enable-SPFeature e374875e-06b6-11e0-b0fa-57f5dfd72085 –url https://sp.contoso.com