Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5409] Windows CLI: Unable to create new project "create" is an unrecognized command.

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionDone
Resolution Date2017-12-11T19:44:18.000+0000
Affected Version/sAppcelerator Studio 4.5.0
Fix Version/sn/a
ComponentsStudio
Labelsn/a
ReporterPraveen Kumar
AssigneeShak Hossain
Created2017-11-25T09:13:56.000+0000
Updated2017-12-11T19:44:18.000+0000

Description

Unable to create new project :  "create" is an unrecognized command. Run 'titanium help' for available commands. 2017-11-25T09:10:43.145Z | ERROR | titanium exited with non-zero exit code (1)

Comments

  1. Sharif AbuDarda 2017-11-25

    Hello, Run "appc ti setup check" in command prompt and attach the log in here. Thanks.
  2. Praveen Kumar 2017-11-26

    Hi, $ appc ti setup check Appcelerator Command-Line Interface, version 6.3.0 Copyright (c) 2014-2017, Appcelerator, Inc. All Rights Reserved. Enter ctrl-c at any time to quit. ──────────────────┤ Check Environment ├─────────────────── Node.js √ node installed (v6.10.3) √ npm installed (v3.10.10) Titanium CLI √ cli bleeding edge (v5.0.14) Titanium CLI Dependencies √ acs up-to-date (v2.0.8) √ alloy up-to-date (v1.10.7) √ appc-cli-titanium up-to-date (v4.3.16) √ appc-inquirer up-to-date (v0.1.10) √ appc-logger up-to-date (v1.1.27) √ appc-platform-sdk up-to-date (v2.3.1) √ arrow up-to-date (v2.0.2) √ async up-to-date (v1.5.2) √ chalk up-to-date (v1.1.3) √ char-spinner up-to-date (v1.0.1) √ columnify up-to-date (v1.5.4) √ commander up-to-date (v2.9.0) √ debug up-to-date (v2.6.9) √ ejs up-to-date (v2.5.7) √ fields up-to-date (v0.1.24) √ fs-extra up-to-date (v0.26.7) × fsevents missing √ inquirer up-to-date (v0.11.4) √ ip up-to-date (v1.1.5) √ jwt-simple up-to-date (v0.3.1) √ lodash up-to-date (v3.10.1) √ mkdirp up-to-date (v0.5.1) √ node-appc up-to-date (v0.2.43) √ node-forge up-to-date (v0.6.49) √ npmconf up-to-date (v2.1.2) √ pac-proxy-agent up-to-date (v2.0.0) √ plural up-to-date (v0.2.0) √ progress up-to-date (v1.1.8) √ recursive-readdir up-to-date (v2.2.1) √ request up-to-date (v2.83.0) √ semver up-to-date (v5.4.1) √ tar up-to-date (v2.2.1) √ tar.gz up-to-date (v1.0.5) √ tiapp.xml up-to-date (v0.2.2) √ titanium up-to-date (v5.0.14) √ which up-to-date (v1.3.0) √ wrench up-to-date (v1.5.9) Titanium SDK √ latest sdk installed (v6.3.0.GA) √ selected sdk up-to-date (v6.3.0.GA) Android Environment √ sdk installed (F:\andriod-sdk-appcelerator) √ targets installed (17 found) √ avds installed (46 found) √ ndk installed () Java Development Kit √ jdk installed (v1.8.0) √ java installed C:\Program Files (x86)\Java\jdk1.8.0_151\bin\java.exe √ javac installed C:\Program Files (x86)\Java\jdk1.8.0_151\bin\javac.exe √ keytool installed C:\Program Files (x86)\Java\jdk1.8.0_151\bin\keytool.exe √ jarsigner installed C:\Program Files (x86)\Java\jdk1.8.0_151\bin\jarsigner.exe Intel® Hardware Accelerated Execution Manager (HAXM) √ compatible ! installed not found; install HAXM to use Android x86 emulator Network √ online - no proxy server configured √ Network connection test √ Java-based connection test Directory Permissions √ home directory √ titanium config directory √ titanium sdk install directory √ temp directory ──────────────────────┤ Main Menu ├─────────────────────── 1) quick Quick Setup 2) check Check Environment 3) user User Information 4) app New App Defaults 5) network Network Settings 6) cli Titanium CLI Settings 7) sdk Titanium SDK Settings 8) android Android Settings 9) windows Windows Settings 10) exit Exit
  3. Mostafizur Rahman 2017-11-26

    Hello [~praveeav@gmail.com],Thanks for your feedback. We are investigating this. Can you try to create a new project using [CLI](http://docs.appcelerator.com/platform/latest/#!/guide/Titanium_CLI_Tasks-section-src-38931164_TitaniumCLITasks-CreateaTitaniumProject) command and let us know if you get the same result. Best
  4. Praveen Kumar 2017-11-26

  5. Sharif AbuDarda 2017-11-26

    Hello, Looks like you are using titanium commands, Follow the guide below, Run "appc new --name MyFirstApp --id com.appcelerator.MyFirstApp". Chose the name and id as you like. Follow through until it' done. Now, The project name will also be its folder name, So, Run "cd MyFirstApp". Finally, let's run the app: "appc run --platform android". Let us know the log. Thanks.
  6. Praveen Kumar 2017-11-27

    Hi sherif, let me check
  7. Sharif AbuDarda 2017-11-29

    Hello [~praveeav@gmail.com], Can you get back to us on my previous guide after you tried that? Thanks.
  8. Praveen Kumar 2017-12-01

    Hello Sherif, $ appc new --name myFirstApp --id com.myFirstApp.app Appcelerator Command-Line Interface, version 6.3.0 Copyright (c) 2014-2017, Appcelerator, Inc. All Rights Reserved. ? What type of project are you creating? app ? Which SDK would you like to use? titanium "create" is an unrecognized command. Run 'titanium help' for available commands. 2017-12-01T17:07:37.782Z | ERROR | titanium exited with non-zero exit code (1)
  9. Sharif AbuDarda 2017-12-01

    Hello, Please run the following command from the command prompt : rm -rf ~/.appcelerator rm -rf ~/.titanium npm uninstall -g titanium npm uninstall -g appcelerator npm install -g appcelerator appc use latest appc setup Send the log. Thanks.
  10. Praveen Kumar 2017-12-02

    Hello Sherif, Except rm -rf ~/.appcelerator remaining command worked fine, but rm -rf ~/.appcelerator shows some warning like cannot remove folder. Error still exists $ appc new Appcelerator Command-Line Interface, version 6.3.0 Copyright (c) 2014-2017, Appcelerator, Inc. All Rights Reserved. ? What type of project are you creating? app ? Which SDK would you like to use? titanium ? What's the project name? myFirstApp ? What's your application id (example: com.myapp)? com.myfirstapp.com "create" is an unrecognized command. Run 'titanium help' for available commands. 2017-12-02T04:26:02.923Z | ERROR | titanium exited with non-zero exit code (1)
  11. Sharif AbuDarda 2017-12-02

    Hello, You need to remove any trace of Appcelerator CLI installed in your system and try to reinstall again. For that you need the .Appcelerator folder removed. The folder is in your rood drive. This usually a hidden folder. So, you need to find the folder and delete it manually. And try to run the commands again. Without removing the previous installation, it seems your system is not accepting the new installation. So, Please do that. Thanks.
  12. Praveen Kumar 2017-12-07

    Hello sharif, Manually removed .appcelerator folder and .titanium folder then npm uninstall -g titanium npm uninstall -g appcelerator npm install -g appcelerator appc use latest appc setup But error while creating project... Microsoft Windows [Version 10.0.10240] (c) 2015 Microsoft Corporation. All rights reserved. C:\Users\dell>appc use 6.3.0 --force Before you can continue, the latest Appcelerator software update needs to be downloaded. Finding version 6.3.0 ... OK Validating security checksum OK Installing ... OK Compiling platform native modules ... └ alloy/deasync ... OK └ external-editor/spawn-sync ... OK └ bunyan/dtrace-provider ... OK └ bunyan/dtrace-provider ... OK └ arrow-flow/jsonpath ... OK └ bunyan/dtrace-provider ... OK └ ldapjs/dtrace-provider ... OK └ package/fsevents ... Failed to install fsevents@1.1.2; it may not support your current OS. Installed!! C:\Users\dell>appc setup Finding latest version ...6.3.0 OK Version 6.3.0 already installed. Appcelerator Login required to continue ... ? Appcelerator ID: xxxxx ? Password: ******** This computer must be authorized before you can complete your login. An authorization code was sent to your email at praveeav@gmail.com ? Please enter the authorization code you received via your email at praveeav@gmail.com: fzZsaK This computer is now authorized: Windows Machine ID: 0564905a-ab9f-47c3-a6da-ecd13d6374ba You can deauthorize this computer by logging out with appc logout -D Generating Developer Certificate and Private/Public Keys... You are now logged in! ? Do you plan on developing Titanium apps? Yes Checking your environment... You have the latest Titanium SDK release 6.3.0.GA Congrats! No issues detected for developing cross-platform mobile apps! appc setup complete! C:\Users\dell>appc new Appcelerator Command-Line Interface, version 6.3.0 Copyright (c) 2014-2017, Appcelerator, Inc. All Rights Reserved. ? What type of project are you creating? app ? Which SDK would you like to use? titanium ? What's the project name? firstapp ? What's your application id (example: com.myapp)? com.first.app "create" is an unrecognized command. Run 'titanium help' for available commands. 2017-12-07T15:17:36.060Z | ERROR | titanium exited with non-zero exit code (1)
  13. Sharif AbuDarda 2017-12-07

    Hello, Please delete the Titanium SDK 6.3.0.GA from your sdk directory. Then run "appc new" it will automatically download the latest SDK and create the app.Let us know.
  14. Praveen Kumar 2017-12-11

    Thank you sharif, Issue fixed. Delete all files then installed Axway Appcelerator 5 and Titanium SDK 7
  15. Sharif AbuDarda 2017-12-11

    Thanks for letting us know.

JSON Source