系统macos 10.12.4
已安装xcode command line tools
按着官网步骤设置如下:
$sudo npm install hexo-cli -g
$hexo init blog
$cd blog
$npm install
然后再执行任何hexo命令都提示如下:
(退出当前blog文件后可以进行一些操作,比如hexo -v)
(已经使用过 npm install hexo --no-optional,也删除过博客文件夹的node_modules,重新npm install,都解决不了问题)
mcukingdom007deMacBook-Pro:Blogs mcukingdom007$ hexo server
dyld: lazy symbol binding failed: Symbol not found: _node_module_register
Referenced from: /Users/mcukingdom007/node_modules/fsevents/lib/binding/Release/node-v51-darwin-x64/fse.node
Expected in: flat namespace
dyld: Symbol not found: _node_module_register
Referenced from: /Users/mcukingdom007/node_modules/fsevents/lib/binding/Release/node-v51-darwin-x64/fse.node
Expected in: flat namespace
Abort trap: 6