koltyakov / generator-sppp

🐾 SP Pull-n-Push - Yeoman generator for SharePoint client-side applications
MIT License
64 stars 12 forks source link

spsave: Error occured when running gulp push #21

Closed repolife closed 5 years ago

repolife commented 5 years ago

[13:12:40] Starting 'push'...

=== Publishing assets to SharePoint ===

[13:12:42] spsave: Error occured: [13:12:42] spsave: 403 - "{\"error\":{\"code\":\"-2147024891, System.UnauthorizedAccessException\",\"message\":{\"lang\":\"en-US\",\"value\":\"Access denied. You do not have permission to perform this action or access this resource.\"}}}"

I'm a site collection admin. What can be causing this?

koltyakov commented 5 years ago

Is it SharePoint Online, Modern site? With custom scripts disabled even an admin can't perform scripts upload.

repolife commented 5 years ago

Even after running? Set-SPOSite -Identity https://tenant.sharepoint.com/sites/contoso -DenyAddAndCustomizePages 0