模块版本不匹配.预期 11,得到 1 [英] Module version mismatch. Expected 11, got 1
本文介绍了模块版本不匹配.预期 11,得到 1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Platform: Linux
运行我的 node.js 程序时出现以下错误
When running my node.js program I got the following error
Error: Module version mismatch. Expected 11, got 1.
推荐答案
你可能会给出这样的错误:
you might give the error like this:
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 Object.<anonymous> (/home/user/node_modules/xml2json/node_modules/node-expat/lib/node-expat.js:4:13)
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)
然后,您可以注意到模块或某处的错误.
and then, you can notice the error in module or somewhere.
这是因为你已经更新了你的节点,你可能会重建上面找到的模块.
this is because you have updated your node, you might rebuild the module found above.
我通过重新安装(删除,然后安装)xml2json 来解决我的问题.
i revole my question by reinstall(remove, then install) xml2json.
祝你好运!
这篇关于模块版本不匹配.预期 11,得到 1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文