Node.js Error: Module version mismatch. Expected 11, got 1.

重装系统之后由 32位 xp 变成 64位 win7,结果执行的时候遇到如下错误

Error: Module version mismatch. Expected 11, got 1.
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at bindings (E:nodegametrunkgame-servernode_modulespomelonode_modulestoobusynode_modules
bindingsbindings.js:76:44)
    at Object.<anonymous> (E:nodegametrunkgame-servernode_modulespomelonode_modulestoobusyind
ex.js:1:97)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)

该错误的重点是在 at bindings 这里, 从路径里面可以看出来是 pomelo 下的 module 出了问题。解决方案也很简单,只要将有问题的 module 重新安装一遍即可:

npm remove pomelo
npm install pomelo

发表评论

Fill in your details below or click an icon to log in:

WordPress.com 徽标

You are commenting using your WordPress.com account. Log Out /  更改 )

Google photo

You are commenting using your Google account. Log Out /  更改 )

Twitter picture

You are commenting using your Twitter account. Log Out /  更改 )

Facebook photo

You are commenting using your Facebook account. Log Out /  更改 )

Connecting to %s