Hexo: 安装hexo运行后报错 /usr/lib/node_modules/hexo-cli/node_modules/chokidar/index.js:150

Created on 20 Oct 2019  ·  5Comments  ·  Source: hexojs/hexo

/usr/lib/node_modules/hexo-cli/node_modules/chokidar/index.js:150
async remove(item) {
^^^^^^

SyntaxError: Unexpected identifier
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:549:28)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
at Function.Module._load (module.js:445:3)
at Module.require (module.js:504:17)
at require (internal/module.js:20:19)
at Object. (/usr/lib/node_modules/hexo-cli/node_modules/hexo-fs/lib/fs.js:6:18)
at Module._compile (module.js:577:32)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
at Function.Module._load (module.js:445:3)
at Module.require (module.js:504:17)

Most helpful comment

@wangzhilun 兄弟 你怎么解决到

我的nodejs版本太低了。升级到了10版本可以了

All 5 comments

@wangzhilun 兄弟 你怎么解决到

@wangzhilun 兄弟 你怎么解决到

我的nodejs版本太低了。升级到了10版本可以了

升级nodejs 正解

@wangzhilun nodejs版本修改如下
language: node_js
node_js: stable

升级nodejs到最新稳定版,就OK了嘿嘿

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mashirozx picture mashirozx  ·  3Comments

yunTerry picture yunTerry  ·  3Comments

testareas picture testareas  ·  3Comments

hgDendi picture hgDendi  ·  3Comments

cxgreat2014 picture cxgreat2014  ·  3Comments