途中出现bug
1.
C:\blog\dog>hexo s -p 5555
INFO Validating config
INFO Start processing
FATAL { err:
TypeError: line.matchAll is not a function
at res.value.res.value.split.map.line (C:\blog\dog\node_modules\hexo-util\lib\highlight.js:121:26)
at Array.map (<anonymous>)
at closeTags (C:\blog\dog\node_modules\hexo-util\lib\highlight.js:119:37)
at highlight (C:\blog\dog\node_modules\hexo-util\lib\highlight.js:112:10)
at highlightUtil (C:\blog\dog\node_modules\hexo-util\lib\highlight.js:24:16)
at data.content.dataContent.replace (C:\blog\dog\node_modules\hexo\lib\plugins\filter\before_post_render\backtick_code_block.js:92:17)
at String.replace (<anonymous>)
at Hexo.backtickCodeBlock (C:\blog\dog\node_modules\hexo\lib\plugins\filter\before_post_render\backtick_code_block.js:19:30)
at Hexo.tryCatcher (C:\blog\dog\node_modules\bluebird\js\release\util.js:16:23)
at Hexo.<anonymous> (C:\blog\dog\node_modules\bluebird\js\release\method.js:15:34)
at Promise.each.filter (C:\blog\dog\node_modules\hexo\lib\extend\filter.js:67:52)
at tryCatcher (C:\blog\dog\node_modules\bluebird\js\release\util.js:16:23)
at Object.gotValue (C:\blog\dog\node_modules\bluebird\js\release\reduce.js:166:18)
at Object.gotAccum (C:\blog\dog\node_modules\bluebird\js\release\reduce.js:155:25)
at Object.tryCatcher (C:\blog\dog\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (C:\blog\dog\node_modules\bluebird\js\release\promise.js:547:31)
at Promise._settlePromise (C:\blog\dog\node_modules\bluebird\js\release\promise.js:604:18)
at Promise._settlePromiseCtx (C:\blog\dog\node_modules\bluebird\js\release\promise.js:641:10)
at _drainQueueStep (C:\blog\dog\node_modules\bluebird\js\release\async.js:97:12)
at _drainQueue (C:\blog\dog\node_modules\bluebird\js\release\async.js:86:9)
at Async._drainQueues (C:\blog\dog\node_modules\bluebird\js\release\async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (C:\blog\dog\node_modules\bluebird\js\release\async.js:15:14) } "Something's wrong. Maybe you can find the solution here: %s" '\u001b[4mhttps://hexo.io/docs/troubleshooting.html\u001b[24m'
在初始化博客的那个文件夹下的_config.yml里改hightlight下enable改为false,如下:
highlight:
enable: false #就只有这一句,true改成false,就结束了
line_number: true
auto_detect: false
tab_replace: ''
wrap: true
hljs: false
2
```
C:\blog\dog>hexo d
INFO Validating config
INFO Deploying: git
INFO Clearing .deploy_git folder...
INFO Copying files from public folder...
INFO Copying files from extend dirs...
On branch master
nothing to commit, working tree clean
fatal: unable to access 'https://github.com/hdclove/hdclove.github.io.git/': SSL certificate problem: unable to get local issuer certificate
FATAL { err:
{ Error: Spawn failed
at ChildProcess.task.on.code (C:\blog\dog\node_modules\hexo-util\lib\spawn.js:51:21)
at ChildProcess.emit (events.js:193:13)
at ChildProcess.cp.emit (C:\blog\dog\node_modules\cross-spawn\lib\enoent.js:34:29)
at Process.ChildProcess._handle.onexit (internal/child_process.js:255:12) code: 128 } } "Something's wrong. Maybe you can find the solution here: %s" '\u001b[4mhttps://hexo.io/docs/troubleshooting.html\u001b[24m'
```
是由于当你通过HTTPS访问Git远程仓库的时候,如果服务器上的SSL证书未经过第三方机构认证,git就会报错。原因是因为未知的没有签署过的证书意味着可能存在很大的风险。解决办法就是通过下面的命令将git中的sslverify关掉:
git config --global http.sslverify false
(173条消息) 解决git下载报错:fatal: unable to access ‘https://github.com/.../.git/‘:_昵称999的博客-CSDN博客