hexo init 卡住

执行 init 命令后一直在这个位置

D:blog>hexo init
INFO  Cloning hexo-starter https://github.com/hexojs/hexo-starter.git 

我已经使用了淘宝镜像,nodejs 也比较新:

D:>node -v
v12.18.4

D:>npm -v
6.14.8

D:>hexo -v
hexo-cli: 4.2.0
os: Windows_NT 10.0.19041 win32 x64
node: 12.18.4
v8: 7.8.279.23-node.39
uv: 1.38.0
zlib: 1.2.11
brotli: 1.0.7
ares: 1.16.0
modules: 72
nghttp2: 1.41.0
napi: 6
llhttp: 2.1.2
http_parser: 2.9.3
openssl: 1.1.1g
cldr: 37.0
icu: 67.1
tz: 2019c
unicode: 13.0

D:>npm config get registry
https://registry.npm.taobao.org/

不知道过了多久变成了这样:

D:\blog>hexo init
INFO  Cloning hexo-starter https://github.com/hexojs/hexo-starter.git
error: RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
fatal: clone of 'https://github.com/hexojs/hexo-theme-landscape.git' into submodule path 'D:/blog/themes/landscape' failed
Failed to clone 'themes/landscape'. Retry scheduled
error: RPC failed; curl 56 OpenSSL SSL_read: Connection was reset, errno 10054
fatal: the remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
fatal: clone of 'https://github.com/hexojs/hexo-theme-landscape.git' into submodule path 'D:/blog/themes/landscape' failed
Failed to clone 'themes/landscape' a second time, aborting
WARN  git clone failed. Copying data instead
FATAL {
  err: [Error: EPERM: operation not permitted, mkdir 'D:\'] {
    errno: -4048,
    code: 'EPERM',
    syscall: 'mkdir',
    path: 'D:\\'
  }
} Something's wrong. Maybe you can find the solution here: %s http://hexo.io/docs/troubleshooting.html
回复
阅读 3.3k
1 个回答

我后卡设置了git代理,发现可以成功下载,推测是git卡住了

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
宣传栏