0

伙计们

最近更新操作系统上的节点促使我从 Titanium 迁移到 Appcelerator Studio,因为 Titanium 刚刚停止工作并且不再受支持

安装 Appcelerator Studio 后,我意识到 Node 存在问题,该问题是从 brew 安装的,所以我将其卸载,然后使用 npm 重新安装......没有荣耀

阅读一些以前的问题,我意识到有些人对最低要求的节点版本 0.12.7 有问题,并且通过降级到 0.10.33,能够让它工作

这不是我的情况。我尝试过使用最新版本,0.12.7,0.10.33 和 0.10.35 ......都不起作用,都给出了以下堆栈跟踪......

2016-03-06T15:23:50.889Z | TRACE  | TypeError: Incorrect value of args option
    at normalizeSpawnArguments (child_process.js:323:11)
    at exports.spawn (child_process.js:356:38)
    at run (/Users/david/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.GA/node_modules/node-appc/lib/subprocess.js:47:14)
    at Object.detect (/Users/david/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.GA/node_modules/node-appc/lib/jdk.js:71:3)
    at Object.async.parallel.jdk (/Users/david/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.GA/node_modules/titanium-sdk/lib/android.js:71:13)
    at /Users/david/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.GA/node_modules/async/lib/async.js:524:25
    at /Users/david/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.GA/node_modules/async/lib/async.js:111:13
    at Array.forEach (native)
    at _each (/Users/david/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.GA/node_modules/async/lib/async.js:32:24)
    at Object.async.each (/Users/david/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.GA/node_modules/async/lib/async.js:110:9)

还值得注意的是,仅仅打开 appcelerator studio 就会提示更新到 0.12.7,而我一直无法绕过

有什么建议么?

4

1 回答 1

1

Titanium 3.3.0 is almost 2 years old and build for Node.JS 0.8. But Appcelerator Studio is unlikely to work with that NodeJS version since we require 0.12.

To still work with Titanium 3.3.0 you probably need Titanium CLI 3.3.0 (sudo npm i -g titanium@3.3.0) and NodeJS 0.8.

于 2016-03-08T08:59:00.570 回答