Skip to content

DTraceProviderBindings.node issue #1

@jordancclive

Description

@jordancclive

I can't get this plugin to work. Here's the error message I get:

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).

Activity

jordancclive

jordancclive commented on Nov 17, 2016

@jordancclive
Author

I tried both npm rebuild and npm install - neither worked.

NoahDragon

NoahDragon commented on Nov 17, 2016

@NoahDragon

Can you try to remove the node-modules folder and rerun the npm install?

tea3

tea3 commented on Nov 17, 2016

@tea3
Owner

Is it possible to solve follow as ? Also , please refer what NoahDragon taught .
hexojs/hexo#1055
http://stackoverflow.com/questions/40368058/atom-package-manager-not-working

noscripter

noscripter commented on Nov 26, 2016

@noscripter

You can fix this problem by doing this in Mac os:

  1. cd hexo installation directory
cd `which hexo`/../..
  1. remove installed node modules

rm -rvf node_modules

  1. reinstall all dependencies

npm install

if you're in china, please use cnpm i which provides faster installation speed.

tea3

tea3 commented on Nov 29, 2016

@tea3
Owner

@noscripter Thank you . The advice from you was very helpful.
@jordancclive Would it be possible to solve this issue ?

lauid

lauid commented on Mar 10, 2017

@lauid

I failure

tea3

tea3 commented on Mar 10, 2017

@tea3
Owner

@liugaohua

Please try reinstall hexo and plugin. For example , you try following emviroment.

  • Mac OSX 10.11 (Sorry , I can't tried windows. )
  • node v6.9.4
  • npm v4.1.1
  • hexo-cli@1.0.2
$ nvm install v6.9.4
$ nvm use v6.9.4
$ npm install -g npm
$ npm install -g hexo-cli
$ hexo init hexo694
$ cd hexo694
$ npm install
$ npm install hexo-related-popular-posts --save
$ hexo new sample-post-1
$ hexo new sample-post-2

Please edit sample-post-1.md as following.

title: sample1
permalink: sample-post-1
date: 2017-03-10 20:41:00
tags:
  - hexo
categories:
  - web
---
Hello , world !

Please edit sample-post-2.md as following.

title: sample2
permalink: sample-post-2
date: 2017-03-10 20:42:00
tags:
  - hexo
categories:
  - web
---
Hello , world !  This post's title is sample2.

Next, please follow these instructions.
https://github.com/tea3/hexo-related-popular-posts#usage

Can you solve this issue by this way ?

levblanc

levblanc commented on Jun 1, 2017

@levblanc

Got the same problem. My setup:

  • Mac OSX: 10.11.6
  • NodeJS: v7.10.0
  • npm: v4.6.1

I use nvm to manage my node versions. Recently I upgraded to v7, and dtrace-provider complained about its compilation.

I tried the following steps:

  1. uninstall hexo-cli globally
$ npm uninstall -g hexo-cli
  1. 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.

  1. under your hexo blog folder (where you have node_modules, public, scaffolds, source and others), remove node_modules
$ rm -rf node_modules
  1. then reinstall them all
$ npm install 

You will see dtrace-provider has an installation step during npm install as follows:

> dtrace-provider@0.8.2 install /path/to/your/blog/folder/node_modules/dtrace-provider
> node scripts/install.js

So I think 3 and 4 are the actual steps that resolves dtrace-provider complain.

tea3

tea3 commented on Jun 2, 2017

@tea3
Owner

@levblanc
Thank you for the helpful information .

re0x6d

re0x6d commented on Aug 11, 2017

@re0x6d

@levblanc Thank you for the helpful information. I solved this problem by following your advices!

ToddAT

ToddAT commented on Oct 10, 2017

@ToddAT

I had to complete all 4 steps to solve the issue on my local machine. Thanks for the info.

ShumRain

ShumRain commented on Dec 23, 2017

@ShumRain

@levblanc Thank you, I finally solved.

YingshanDeng

YingshanDeng commented on Dec 27, 2017

@YingshanDeng

re-install hexo-cli works

MikeMMao

MikeMMao commented on Feb 24, 2018

@MikeMMao

Maybe your Global installation files hasn`t been update, please try to update your hexo-cli with command below:

sudo npm install -g hexo-cli

this solved my problem.

hmgqzx

hmgqzx commented on Mar 2, 2018

@hmgqzx

@MikeMMao
Never run npm install -g hexo-cli with sudo. Sometimes it would cause some problem with permission.
You can see more at Mac install hexo use sudo but sitll permission denied · Issue #2785 · hexojs/hexo

youkimm

youkimm commented on Apr 28, 2018

@youkimm

@levblanc thank you very much, this sovlved my problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @noscripter@ToddAT@lauid@levblanc@jordancclive

        Issue actions

          DTraceProviderBindings.node issue · Issue #1 · tea3/hexo-related-popular-posts