合金编译器失败,但经典的钛合金作品

时间:2020-01-12 10:54:14

标签: titanium appcelerator titanium-alloy

当我尝试运行基本的Alloy应用(两个选项卡的模板)时,出现此错误:

[ERROR] :  : Cannot find module './validators/react/isReactComponent'
[ERROR] :  Alloy compiler failed
[ERROR] Application Installer abnormal process termination. Process exit value was 1

但是当我运行没有合金的经典应用程序(两标签模板)时,程序运行正常。

我的系统是:

Operating System
  Name                        = Mac OS X
  Version                     = 10.14.5
  Architecture                = 64bit

Node.js
  Node.js Version             = 8.9.1
  npm Version                 = 5.5.1

Appcelerator CLI
  Installer                   = 4.2.15
  Core Package                = 7.1.2

Titanium CLI
  CLI Version                 = 5.2.2
  node-appc Version           = 0.2.49

1 个答案:

答案 0 :(得分:3)

尝试将您的Node版本更新为10.x(例如https://nodejs.org/dist/latest-v10.x/)。之后,再次安装CLI(npm install -g appcelerator titanium alloy,然后运行appc use 7.1.2 --force,以确保所有软件包都已重建,并且您应该能够运行该应用程序