首页 > 解决方案 > 合金编译器失败但经典的钛作品

问题描述

当我尝试运行基本合金应用程序(双标签模板)时,我收到此错误:

[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

标签: titaniumappceleratortitanium-alloy

解决方案


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


推荐阅读