Nodejs版本的问题
首先,如下引用:http://docs.appcelerator.com/titanium/latest/#!/guide/Installing_Node
To run all Appcelerator components, you must have Node.js 0.10.13 or later.
On Mac OS X and Windows, if you have selected to install Titanium updates, Studio prompts you to install Node.js. On Linux, you need to manually install Node.js.
也就是说Nodejs要在0.10.13以上,也就是说要在Ubuntu 12.04LTS上的话,就不能用非官方源,我找的ppa。ok,装了。
但编译运行时,发现还是报错,而且有人遇到同样的问题。
再看:http://developer.appcelerator.com/question/150324/error-in-longjohnjs-when-creating-titanium-project
http://developer.appcelerator.com/question/151060/titanium-unable-to-build-after-310-update
What version of Node.js do you have installed? Titanium SDK 3.0.0.GA and 3.0.2.GA will only work with Node.js 0.8.X (download link:http://nodejs.org/dist/v0.8.22/). Node.js 0.10.X is only supported by Titanium 3.1.0 or newer (as of right now, 3.1.0 has not been released).
最后一人说:It still throws this error for me even on v 3.2. Help!
这是要放弃这种解决方案的节奏。