Hexo deploy permisson error on /usr/share/nginx

Briefly summarize the issues you have been experiencing.

I’m trying to deploy a hexo site with netlify. Commands are automatically detected but on hexo generate step I get the following error. Any ideas about what I am doing wrong?

Error: EACCES: permission denied, mkdir '/usr/share/nginx'

That’s odd. Hexo shouldn’t need to touch that directory, and does not have permission to do so. Other folks use hexo without this requirement, so it is possible.

You’ll need to adjust the setup you have for hexo that would have it using that directory since the behavior of our build environment won’t change, and there is no nginx involved in our building or CDN serving environment, so nothing around it should be needed/used during build :slight_smile:

I deleted that site and create a new one. Works like a charm

thanks for coming back and letting us know :smiley: