hexo d - “ERROR Deployer not found git”
Install hexo-deployer-git
1
| npm install hexo-deployer-git --save
|
Hexo - No layout index.html(theme-next)
clone hexo-theme-next
1 2 3
| git clone https://github.com/next-theme/hexo-theme-next themes/next
npm uninstall hexo-theme-next --save
|
highlight(lang, code, …args) has been deprecated
Deprecated as of 10.7.0. highlight(lang, code, …args) has been deprecated.
Deprecated as of 10.7.0. Please use highlight(code, options) instead.
https://github.com/highlightjs/highlight.js/issues/2277
Install hexo-util
1
| npm install hexo-util --save
|
Hexo localhost 打不開
http://localhost:4000
port 被占用
查 port 被占用情形
1 2
| netstat -ano | findstr 0.0:4000 TCP 0.0.0.0:4000 0.0.0.0:0 LISTENING 5976
|
查被誰占用
1 2
| tasklist | findstr 5976 Code.exe 5976 Console 1 92,008 K
|
變更連接埠
localhost 的 http 網站被強制導向 https(edge適用)
開啟瀏覽器
1 2
| chrome://net-internals/ edge://net-internals/
|
到最下方找到 Delete domain security policies 設定,輸入localhost按下Delete
Database load failed. Deleting database.(執行 無標籤,分類)
run “hexo clean” 再執行 “hexo s”
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
| D:\work\git\hot5656.github.io>hexo s INFO Validating config INFO ================================== ███╗ ██╗███████╗██╗ ██╗████████╗ ████╗ ██║██╔════╝╚██╗██╔╝╚══██╔══╝ ██╔██╗ ██║█████╗ ╚███╔╝ ██║ ██║╚██╗██║██╔══╝ ██╔██╗ ██║ ██║ ╚████║███████╗██╔╝ ██╗ ██║ ╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝ ╚═╝ ======================================== NexT version 8.2.2 Documentation: https://theme-next.js.org ======================================== ERROR Database load failed. Deleting database. INFO Start processing INFO Hexo is running at http://localhost:4000 . Press Ctrl+C to stop. (node:1368) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency (Use `node --trace-warnings ...` to show where the warning was created) (node:1368) Warning: Accessing non-existent property 'column' of module exports inside circular dependency (node:1368) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency (node:1368) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency (node:1368) Warning: Accessing non-existent property 'column' of module exports inside circular dependency (node:1368) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency INFO Bye!
D:\work\git\hot5656.github.io>hexo clean INFO Validating config INFO ================================== ███╗ ██╗███████╗██╗ ██╗████████╗ ████╗ ██║██╔════╝╚██╗██╔╝╚══██╔══╝ ██╔██╗ ██║█████╗ ╚███╔╝ ██║ ██║╚██╗██║██╔══╝ ██╔██╗ ██║ ██║ ╚████║███████╗██╔╝ ██╗ ██║ ╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝ ╚═╝ ======================================== NexT version 8.2.2 Documentation: https://theme-next.js.org ======================================== INFO Deleted public folder.
D:\work\git\hot5656.github.io>hexo s INFO Validating config INFO ================================== ███╗ ██╗███████╗██╗ ██╗████████╗ ████╗ ██║██╔════╝╚██╗██╔╝╚══██╔══╝ ██╔██╗ ██║█████╗ ╚███╔╝ ██║ ██║╚██╗██║██╔══╝ ██╔██╗ ██║ ██║ ╚████║███████╗██╔╝ ██╗ ██║ ╚═╝ ╚═══╝╚══════╝╚═╝ ╚═╝ ╚═╝ ======================================== NexT version 8.2.2 Documentation: https://theme-next.js.org ======================================== INFO Start processing (node:9304) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency (Use `node --trace-warnings ...` to show where the warning was created) (node:9304) Warning: Accessing non-existent property 'column' of module exports inside circular dependency (node:9304) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency (node:9304) Warning: Accessing non-existent property 'lineno' of module exports inside circular dependency (node:9304) Warning: Accessing non-existent property 'column' of module exports inside circular dependency (node:9304) Warning: Accessing non-existent property 'filename' of module exports inside circular dependency Deprecated as of 10.7.0. highlight(lang, code, ...args) has been deprecated. Deprecated as of 10.7.0. Please use highlight(code, options) instead. https://github.com/highlightjs/highlight.js/issues/2277 INFO Hexo is running at http://localhost:4000 . Press Ctrl+C to stop.
|