ERROR 插件加载失败:hexo-deployer-git 当我部署博客时
ERROR Plugin load failed: hexo-deployer-git when I deploy the blog
Git,我安装hexo-deployer-git的时候node,hexo都安装了correctly.But,所有的hexo命令都会出现如下问题。这是插件的问题吗?我该如何解决?
以下是报错信息,你能帮帮我吗?
'''
$ hexo d
ERROR Plugin load failed: hexo-deployer-git
D:\blog\node_modules\picomatch\lib\picomatch.js:54
let ignoreOpts = { ...options, ignore: null, onMatch: null, onResult: null };
^^^
SyntaxError: Unexpected token ...
at createScript (vm.js:53:10)
at Object.runInThisContext (vm.js:95:10)
at Module._compile (module.js:543:28)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (D:\blog\node_modules\picomatch\index.js:3:18)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (D:\blog\node_modules\hexo-deployer-git\node_modules\readdirp\index.js:6:19)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
ERROR Deployer not found: git
'''
您可能 运行正在使用不支持该语法的旧版 Node。 SyntaxError 是由扩展运算符 ...
引起的,它在 Node 8.3 或更高版本中受支持。
在终端 window.
中检查您的节点版本 运行 node -v
Git,我安装hexo-deployer-git的时候node,hexo都安装了correctly.But,所有的hexo命令都会出现如下问题。这是插件的问题吗?我该如何解决? 以下是报错信息,你能帮帮我吗?
'''
$ hexo d
ERROR Plugin load failed: hexo-deployer-git
D:\blog\node_modules\picomatch\lib\picomatch.js:54
let ignoreOpts = { ...options, ignore: null, onMatch: null, onResult: null };
^^^
SyntaxError: Unexpected token ...
at createScript (vm.js:53:10)
at Object.runInThisContext (vm.js:95:10)
at Module._compile (module.js:543:28)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (D:\blog\node_modules\picomatch\index.js:3:18)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (D:\blog\node_modules\hexo-deployer-git\node_modules\readdirp\index.js:6:19)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
ERROR Deployer not found: git
'''
您可能 运行正在使用不支持该语法的旧版 Node。 SyntaxError 是由扩展运算符 ...
引起的,它在 Node 8.3 或更高版本中受支持。
在终端 window.
中检查您的节点版本 运行node -v