简体   繁体   English

nodeJS升级后,Appcelerator箭头错误:模块版本不匹配。 预计47,得到46

[英]Appcelerator Arrow error after nodeJS upgrade: Module version mismatch. Expected 47, got 46

After I upgraded NodeJS and NPM to 3.xx, when I run "Appc run" command for my Appcelerator Arrow application, I get the following error: 将NodeJS和NPM升级到3.xx后,为我的Appcelerator Arrow应用程序运行“ Appc run”命令时,出现以下错误:

[Error: Module version mismatch. [错误:模块版本不匹配。 Expected 47, got 46.] 预计47,得到46。]

Interestingly, the console does NOT show any further details as to which module is throwing the error. 有趣的是,控制台不会显示有关哪个模块引发错误的更多详细信息。

I have tried removing all node modules and then run "npm install" but this error won't go away. 我尝试删除所有节点模块,然后运行“ npm install”,但该错误不会消失。 Any advice would be most appreciated. 任何建议将不胜感激。

This happens because different versions of node has different api compatibility (for node, not appc). 发生这种情况是因为不同版本的节点具有不同的api兼容性(对于节点而不是appc)。

The easiest was to fix this is to re-install the appc command line tools again using the command: appc use latest --force . 最简单的解决方法是使用以下命令重新安装appc命令行工具: appc use latest --force

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM