Skip to content

Instantly share code, notes, and snippets.

@qiwihui
Last active May 14, 2018 07:38
Show Gist options
  • Save qiwihui/6cb40feb623c07619373275d9d44e988 to your computer and use it in GitHub Desktop.
Save qiwihui/6cb40feb623c07619373275d9d44e988 to your computer and use it in GitHub Desktop.
Hexo: Module version mismatch

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:

The hexo in node_modules/.bin The hexo in /usr/local/bin/hexo 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

refer: hexo#1742

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