titanium - 合金编译器失败但经典的钛作品
问题描述
当我尝试运行基本合金应用程序(双标签模板)时,我收到此错误:
[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
解决方案
尝试将您的 Node 版本更新到 10.x(例如https://nodejs.org/dist/latest-v10.x/)。之后再次安装 CLI ( npm install -g appcelerator titanium alloy
) 并运行appc use 7.1.2 --force
以确保所有包都已重建并且您应该能够运行该应用程序
推荐阅读
- javascript - React _this3.deleteArticle 不是一个函数
- java - 为什么通过在Java中将字节数组转换为BitSet得到错误的位表示
- c# - CS0542 C# 'Something':成员名称不能与其封闭类型相同
- python - 使用 pd.apply() 清理数据框
- python - OpenCV 是否有任何方法或方法论来理解运动?
- spring-boot - Spring Boot 与 Apache Camel 和 Active MQ 以及 Hawtio 问题
- python - 从 csv 转换时确保 json 元素的子元素中的唯一值
- php - 如何从 php (Laravel) 连接到 SQL 服务器
- android - onBindViewHolder 不能使用 viewHolder
- spring-boot - 如何使用 @ComponentScan 和 JPA 存储库为应用程序编写 @SpringBootTest