问题描述
hexo d
INFO Validating config
INFO deploying: git
INFO Clearing .deploy_git folder...
INFO copying files from public folder...
?停止!!!
_config.yml 有空白
deploy:
type: git
repository: https://github.com/h****t/h****t.github.io
branch: main
hexo 清洁
$ hexo clean
INFO Validating config
INFO Deleted database.
INFO Deleted public folder.
hexo g
$ hexo g
INFO Validating config
INFO Start processing
INFO Files loaded in 821 ms
(node:1032) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:1032) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:1032) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
(node:1032) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency
(node:1032) Warning: Accessing non-existent property 'column' of module exports inside circular dependency
(node:1032) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency
INFO Generated: archives/index.html
INFO Generated: archives/2021/index.html
INFO Generated: archives/2021/02/index.html
INFO Generated: index.html
INFO Generated: fancybox/jquery.fancybox.min.css
INFO Generated: js/script.js
INFO Generated: css/style.css
INFO Generated: 2021/02/07/hello-world/index.html
INFO Generated: css/fonts/fontawesome-webfont.woff2
INFO Generated: css/fonts/fontawesome-webfont.eot
INFO Generated: css/fonts/FontAwesome.otf
INFO Generated: css/fonts/fontawesome-webfont.woff
INFO Generated: fancybox/jquery.fancybox.min.js
INFO Generated: css/fonts/fontawesome-webfont.ttf
INFO Generated: js/jquery-3.4.1.min.js
INFO Generated: css/images/banner.jpg
INFO Generated: css/fonts/fontawesome-webfont.svg
INFO 17 files generated in 1.98 s
己糖
$ hexo s
INFO Validating config
INFO Start processing
INFO Hexo is running at http://localhost:4000 . Press Ctrl+C to stop.
hexo d
$ hexo d
INFO Validating config
INFO deploying: git
INFO Clearing .deploy_git folder...
INFO copying files from public folder...
它停在 INFO copying files from public folder...
我认为我的_config.yml
是对的,因为我部署了另一个 Github 帐户并且它成功了,但我不知道为什么这个帐户失败了,SSH 已连接:
$ ssh -T [email protected]
Hi h****t! You've successfully authenticated,but GitHub does not provide shell access.
请帮帮我!!!?,非常感谢!!!
解决方法
运行:
npm un hexo-deployer-git
npm i hexojs/hexo-deployer-git
https://github.com/hexojs/hexo/issues/4634
测试有效