Facing 'Unable to locate the CLI executable' on Windows - titanium

I just installed Titanium and I'm not really familiar with this IDE. I added Android SDK to start my first application and everything looks cool until I tried to see my application in Android Emulator. I'm getting Unable to locate the CLI executable. Please restart Studio or use Help > Check for Titanium Updates to install Titanium CLI. and Check for Titanium Updates Says No Titanium updates available. and restarting the studio multiple times didn't work too. I cannot even preview my application in web browser. What am I doing wrong?
I'm using Titanium Studio, build: 3.1.0.201304151600 on Windows Server 2008 R2 Everything is up to date Node.js, Android SDKs, etc. I'm trying to create a web-based application frt Android 2.2+ and mobile web.

Farid,
There are several things you can try.
1.Type titanium in your command line and hit enter.If it gives 'not recognised as an internal or external command',it means Titanium package is not properly installed.
2.Try uninstalling just the Titanium node.js package using npm titanium uninstall command.
3.Once uninstalled,open Titanium studio.It will prompt you for installing Titanium CLI.Follow the steps and install Titanium CLI.
4.If these steps do not work,then uninstall node and install everything from the studio itself,rather than from the command line.
Sometimes installing Titanium CLI from command line fails.
EDIT:Before you try all this type node in your command prompt and see if node command is being recognised.If it is not you will have to set it to the PATH variable.

Thanks to 'Mukund Samant' with useful workarounds, I managed to fix this problem [although I faced another problem] by removing node.js and installing an older version (0.8.22) and then installing node.acs package manually by runnig this command: npm -g install acs. Now Titanium won't give me any errors or update messages on startup.
Note that I found out I have to run Titanium Studio as Administrator!

Related

cant launch webOS eclipse IDE

I'm new to webOS SDK. Downloaded the installer and after i finished installation couldn't launch IDE.
I also tried to install from offline package. But still same.
Keep freezing at this screen.
MacOS 10.12.6
java version "1.8.0_131"
You must run with sudo. Try run with command like this
sudo /Users/USER/webOS_TV_SDK/IDE/WebOSIDE.app/Contents/MacOS/WebOSIDE ; exit;
Do the following :
Delete the following old config files:
C:\Users[User Name]\AppData\Roaming.webos
C:\Users[User Name]\AppData\Roaming.ares
Re-start webOS TV IDE.

Mobilefirst-8.0 Platform Using Eclipse Development

I am trying to put sample for MFP-8.0 Apps and i follow that below links & video,
https://mobilefirstplatform.ibmcloud.com/blog/2016/06/17/ibm-mobilefirst-studio-8-0-plugin-for-eclipse-now-available/
This is error message i got from eclipse console.
E:\POC\MFP-8.0\MFP\SampleTest\www>mfpdev app register --noprompt
E:\POC\MFP-8.0\MFP\SampleTest\www>exit
'mfpdev' is not recognized as an internal or external command,
operable program or batch file.
If anything i missed out for above the tutorial what else i have to do? kindly any one advice me.
System environment : Windows 8.1,Eclipse Mars, Java 1.8
Thanks
If it doesn't know what "mfpdev" is, it sounds like then that you do not have the MobileFirst CLI installed.
Make sure you have nodejs installed, then from command line run the following command: npm install -g mfpdev-cli, which will install the CLI.
The Studio plug-in relies on the CLI installed, since behind-the-scenes it calls CLI commands.

Installing Apache Cordova

I'm new to this of Apache Cordova. I'm trying to follow the documentation but cannot understand it very well. It says that for prerequisite I need to install the correspondant SDK. I did install Android Studio. then downloaded the Node.js and then tried to run the installation but it doesn't start I don't understand why it doesn't start. There is another things that I need to do so it starts installing?
Any help will be great. Thanks!
I think the clue is in the message -- just run the command npm install -g cordova from the normal DOS command prompt.
first of all you have to install 1)node.js 2)apache ANT 3) Java JDK & JRE 4) Android SDk & Eclipse and then after all installation you have to set this all software path into environmental- variable. and then fire your npm install -g cordova. without this all software installation and there path setup your phoneGap application will not created. and still you have any confusion and any question related software installation and there path setup then again tell me i will help you.
First and foremost, you want to install Node.js in order to get the 'npm' commands to work.
https://nodejs.org/download/release/latest/
You can download the latest version of Node.js from there... I was on a Mac, so I did the .pkg download. Install the appropriate one for your development machine.
After that, the 'npm' commands for Cordova will work. Hope this at least gets you started! :)

An internal error occurred during: “Computing SDK Info…” When Starting Titanium Studio

Since upgrading TitaniumStudio, I am getting a java error when starting the TitaniumStudio application. Full error message is:
An internal error occurred during: "Computing SDK Info...".
java.lang.NullPointerException
When I try to create a new project, I get
Unable to locate the CLI executable. Please restart Studio or use Help > Check for Titanium Updates to install Titanium CLI.
I have no idea how to bypass this error. I tried installing and reinstalling the application, installing and reinstalling CLI via command line with no luck.
I am running osx with Yosemite.
Titanium 3.4.1
Node v0.10.33
npm 1.4.28
Any suggestion on where else to look in order to solve this error?
Thanks
I had the same problem. I switched from using node 0.12 to 0.10.13. Here are the two commands:
npm install -g n
n 0.10.13
then restart titanium studio
I know I'm answering this 3 months after the question was asked, but the solution provided by #turtle above didn't work for me.
I was getting the exact same error with a brand new install of Titanium (SDK 3.5) on OS X 10.10.2 and the latest version (0.12) of Node already installed. This happened on 3 separate Macs. I compared with a 4th Mac that already had Titanium installed and found out that reverting Node from 0.12 to 0.10.13 made the error go away, solved the problem on all 3 Macs!
Do a complete reinstall of titanium studio git and noe.It will solve your problem.

installing phonegap on windows7 error

I am a web developer and new to Phonegap..
I was trying to install phone gap on my windows 7 machine as per described here
http://docs.phonegap.com/en/3.1.0/guide_cli_index.md.html#The%20Command-line%20Interface
but when i run the following command
cordova platform add android
i am getting the following error
[Error: An error occured during creation of android sub-project.
ERROR : executing command 'ant', make sure you have ant installed and added to y
our path.
]
does this mean that i should install apache ant on my machine ? if so can someone redirect me to right link.
I am also running wampserver on my machine for my other developments..
will installing 'ant' affect on my wamp ?
As described in PhoneGap Getting Started
Finally, you may need to include %ANT_HOME%\bin to your PATH as well. To check to see if this is required, run a command prompt and type ant. If the program can not be found add %ANT_HOME%\bin to the PATH. You may need to specify the full path instead of using the %ANT_HOME% environment variable.
If you need ant for Windows, you may want to download and install it from here
You need ant to add the android platform.
Ant is a java-based build tool.
You can get further informations and download it at http://ant.apache.org.
ant has nothing to do with the apache webserver and doesn't effect your wamp installation. It's another software product provided by the apache foundation.
lg
fastrde