执行 hexo 命令报错,找不到模块 DTraceProviderBindings
情况是这样的,过了有一段时间没有更新 hexo-cli 后每次使用无论是 hexo s
还是 hexo d
都会报错
1 | "Cannot find module './build/Release/DTraceProviderBindings'" |
解决 方案是执行
1 | npm uninstall hexo-cli -g |
或
1 | yarn global remove hexo-cli |
情况是这样的,过了有一段时间没有更新 hexo-cli 后每次使用无论是 hexo s
还是 hexo d
都会报错
1 | "Cannot find module './build/Release/DTraceProviderBindings'" |
解决 方案是执行
1 | npm uninstall hexo-cli -g |
或
1 | yarn global remove hexo-cli |