Hexo 部署时 Permission Denied

今天对一些文章重新整理,导致部署时出现错误:

1
2
3
4
INFO  Deploying: git
INFO Clearing .deploy_git folder...
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Error: EACCES: permission denied, unlink '/Users/Beans/IceWorks/.deploy_git/index.html'

起初将文章重新生成:

1
2
3
hexo clean
hexo g
hexo d

发现仍然报错。

后来试着将 文章.deploy_git 清理干净:

1
2
3
4
hexo clean
sudo rm -rf .deploy_git
hexo g
hexo d

方才正常。

------ END ------
0%