-
Notifications
You must be signed in to change notification settings - Fork 15
Closed
Description
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
).
mehrad77
Activity
jordancclive commentedon Nov 17, 2016
I tried both npm rebuild and npm install - neither worked.
NoahDragon commentedon Nov 17, 2016
Can you try to remove the node-modules folder and rerun the
npm install
?tea3 commentedon Nov 17, 2016
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 commentedon Nov 26, 2016
You can fix this problem by doing this in Mac os:
rm -rvf node_modules
npm install
tea3 commentedon Nov 29, 2016
@noscripter Thank you . The advice from you was very helpful.
@jordancclive Would it be possible to solve this issue ?
lauid commentedon Mar 10, 2017
I failure
tea3 commentedon Mar 10, 2017
@liugaohua
Please try reinstall hexo and plugin. For example , you try following emviroment.
Please edit
sample-post-1.md
as following.Please edit
sample-post-2.md
as following.Next, please follow these instructions.
https://github.com/tea3/hexo-related-popular-posts#usage
Can you solve this issue by this way ?
levblanc commentedon Jun 1, 2017
Got the same problem. My setup:
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:
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 thenode_modules
and reinstall.node_modules
,public
,scaffolds
,source
and others), removenode_modules
You will see
dtrace-provider
has an installation step during npm install as follows:So I think 3 and 4 are the actual steps that resolves
dtrace-provider
complain.tea3 commentedon Jun 2, 2017
@levblanc
Thank you for the helpful information .
re0x6d commentedon Aug 11, 2017
@levblanc Thank you for the helpful information. I solved this problem by following your advices!
ToddAT commentedon Oct 10, 2017
I had to complete all 4 steps to solve the issue on my local machine. Thanks for the info.
ShumRain commentedon Dec 23, 2017
@levblanc Thank you, I finally solved.
YingshanDeng commentedon Dec 27, 2017
re-install hexo-cli works
MikeMMao commentedon Feb 24, 2018
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 commentedon Mar 2, 2018
@MikeMMao
Never run
npm install -g hexo-cli
withsudo
. 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 commentedon Apr 28, 2018
@levblanc thank you very much, this sovlved my problem