当我尝试通过appc new命令或Appcelerator Studio创建项目时,我得到一个错误。我曾多次尝试卸载并重新安装Appcelerator Studio,但错误没有改变。appc的输出如下所示,来自studio的错误是相同的:
[INFO] Creating app project
[INFO] Template directory: /Users/<user>/Library/Application Support/Titanium/mobilesdk/osx/8.1.0.GA/templates/app/default
[INFO] Writing tiapp.xml
[INFO] Project created successfully in 163ms
An uncaught exception was thrown!
Unexpected end of JSON input
Unexpected end of JSON input发布于 2020-05-29 18:01:14
请确保使用npm i -g appcelerator安装了最新的Appcelerator CLI
或者,您可以通过Titanium Source CLI进行构建。你可以通过ti build p ios|android与npm i -g titanium一起安装并运行该应用程序。
https://stackoverflow.com/questions/57714413
复制相似问题