我用的是git bash通过hexo init安装hexo的,但是报错如下:
$ hexo init
INFO Cloning hexo-starter https://github.com/hexojs/hexo-starter.git
fatal: unable to access 'https://github.com/hexojs/hexo-starter.git/': HTTP/2 stream 1 was not closed cleanly before end of the underlying stream
WARN git clone failed. Copying data instead
FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html
Error: EPERM: operation not permitted, mkdir 'D:\'
把git bash关掉,然后在要安装的目录下重新打开git bash,重新执行hexo init命令即可成功: