Since v9.1, RAD comes with a Cordova CLI installation. It typically is located in <SDP>/cordova_cli folder, where <SDP> is your RAD's installation location. If for whatever reason you want to install your own Cordova CLI and don't want to modify the one that comes with RAD, here is how you can do it, just follow the steps.
- Download Node.JS. You can use either from Joyent or IBM SDK for Node.JS. Fun fact: IBM Bluemix uses IBM SDK for Node.JS to provide the Node runtime.
- Uncompress the downloaded archive in the location you want to install Cordova
- Make sure you have node and npm. If you downloaded IBM SDK for Node.JS then you're fine. If you downloaded Joyent's and you are on Windows, then you need to download NPM and place it in the same folder as Node.JS
- Open a Command Prompt or a Terminal.
- Go into the Node.JS folder. If you are on Linux/Mac then you'll have to go deeper to bin folder. This is because in Windows, the binaries are in the root of the Node.JS folder, in Linux and Mac those are in the bin folder following the standard for *nix systems.
- Run the following command:
npm install -g --prefix=<TARGET_DIR> cordova
-g: Means this is global in the installation. Will create an executable (either CMD or symlink depending on the OS) that in the end will run <Cordova_Location>/lib/node_modules/cordova/bin/cordova
--prefix: Is the target installation location for this Cordova. Ensure you are using the same location as Node.JS.
After some time, depending on your bandwith, you will have a Cordova CLI ready to be used in RAD preserving the one that comes in it.
Once Cordova CLI is installed, you will notice that node, npm and cordova are present as executable files in the same folder.