DTraceProviderBindings.node issue

DTraceProviderBindings.node issue

在下载最新的hexo的时候遇到了这样的一段错误

Error: The module '/usr/local/lib/node_modules/hexo-cli/node_modules/dtrace-provider/build/Release/DTraceProviderBindings.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 48. This version of Node.js requires
NODE_MODULE_VERSION 51. Please try re-compiling or re-installing
the module (for instance, using npm rebuild ornpm install).

在github上看到关于这个issue的讨论 点击这里

按照如下步骤就可以解决

  • hexo inst cd allation directory
cd `which hexo`/../..
  • remove installed node modules
rm -rvf node_modules
  • reinstall all dependencies
npm install

你可能感兴趣的:(DTraceProviderBindings.node issue)