title: HEXO常见报错
tags: HEXO
category: 个人博客
首发网址:https://tiansztiansz.github.io/2022/01/29/HEXO常见报错/
网络错误
若出现如下报错,是由于网络原因,再重复执行几次命令就好
fatal: unable to access 'https://github.com/hexojs/hexo-starter.git/': OpenSSL SSL_read: Connection was reset, errno 10054
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
node_model错误
出现如下错误。对于该例子,可以删除hexo-plugin-gitalk
这个文件夹
TypeError: Cannot read properties of undefined (reading ‘gitalk’)
at Hexo. (D:\blog\themes\next\node_modules\hexo-plugin-gitalk\index.js:2:41)
npm命令报错,权限不足
找到node安装目录,右键属性,点击安全,设置users用户完全控制权限
然后用管理员模式运行cmd