Hexo: Module version mismatch

Created on 7 Feb 2016  路  10Comments  路  Source: hexojs/hexo

[Error: Module version mismatch. Expected 47, got 44.]
{ [Error: Cannot find module './build/default/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }
{ [Error: Cannot find module './build/Debug/DTraceProviderBindings'] code: 'MODULE_NOT_FOUND' }
These error messages pop out everytime I invoke a hexo command.

Most helpful comment

I was also getting this but with the error:

[Error: Module version mismatch. Expected 46, got 47.]

It seems there was a mismatch between one of:

  1. The hexo in node_modules/.bin
  2. The hexo in /usr/local/bin/hexo
  3. The globally installed hexo which may well have been the one from 2.

My solution was:

npm uninstall -g hexo-cli
rm /usr/local/bin/hexo
rm -rf node_modules
npm install
npm install -g hexo-cli

All 10 comments

Try to remove node_modules and run npm install again.

@tommy351 I did, but it does not work.

I also have the same problem.

update: I solved it by #1733

Use npm install --no-optional

I was also getting this but with the error:

[Error: Module version mismatch. Expected 46, got 47.]

It seems there was a mismatch between one of:

  1. The hexo in node_modules/.bin
  2. The hexo in /usr/local/bin/hexo
  3. The globally installed hexo which may well have been the one from 2.

My solution was:

npm uninstall -g hexo-cli
rm /usr/local/bin/hexo
rm -rf node_modules
npm install
npm install -g hexo-cli

@leggetter thanks, it words for me

@leggetter thanks

@leggetter thanks, it works for me

@leggetter Thanks! ;)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mashirozx picture mashirozx  路  3Comments

testareas picture testareas  路  3Comments

jakeg picture jakeg  路  3Comments

yunTerry picture yunTerry  路  3Comments

hjmJhon picture hjmJhon  路  3Comments