无法通过CLI或Appcelerator Studio使用appcelerator创建项目

问题描述 投票:4回答:1

[当我尝试通过appc new命令或Appcelerator Studio创建项目时,出现错误。我已经尝试了几次卸载并重新安装Appcelerator Studio,但是错误没有改变。 appc输出如下,来自工作室的错误是相同的:

[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
appcelerator appcelerator-titanium appcelerator-studio
1个回答
4
投票

请确保您使用以下命令安装了最新的Appcelerator CLInpm i -g appcelerator

或者,您可以通过Titanium开源CLI进行构建。您可以使用npm i -g titanium安装它,并通过ti build p ios|android运行该应用。

© www.soinside.com 2019 - 2024. All rights reserved.