Hexo problems

Hexo

DTraceProviderBindings.node issue

  • Mac 环境下使用如下命令重新编译安装 Hexo 的 node_modules 依赖
    1
    2
    3
    4
    5
    6
    7
    8
    # cd hexo installation directory
    cd `which hexo`/../..

    # remove installed node modules
    rm -rvf node_modules

    # reinstall all dependencies
    npm install
  • 如果是使用 nvm 管理 node 版本相关,使用一下方式修复即可
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    # uninstall hexo-cli globally
    npm uninstall -g hexo-cli

    # then reinstall it
    npm install -g hexo-cli

    # Till this step, when I went to my hexo blog folder and ran hexo server, dtrace-provider was still complaining. So I decided to remove all the node_modules and reinstall.
    # under your hexo blog folder (where you have node_modules, public, scaffolds, source and others), remove node_modules
    rm -rf node_modules

    # then reinstall them all
    npm install