I have been installing cordova on my work machine this passed days and I am really not happy when it failed because it can’t connect to the internet because our proxy is using AD Authentication. I have tried some NTLM proxy but its not working anymore. My alternative was to connect to the internet directly which is something that will work only when I am at home. Thank fully I found a working way to make it happen with a help from github gist.
Here is the modified steps:
Install CNTLM(mirror) in a folder where you have full rights to run it as administrator.
Open cntlm.ini and fill it :Username YOUR_USERNAME
Run the CNTLM by running this command on the context of the folder on Step #1
cntlm -v -f -c "cntlm.ini"
Run the following on your NPM commands on your Node.js window
npm config set proxy http://localhost:53128
npm config set https-proxy http://localhost:53128
npm config set registry http://registry.npmjs.org
Now you can install Cordova without any issue and even install other NPM modules.
Just a CAUTION your password is in plain text. So be reminded to remove it when your working on a multi-developer machine.
Since we need to have a guide for our teammate I have decided that instead of teaching how to install one by one to my colleagues I will create an online user guide so that any other person online that will be also looking for guide will also have the help that they need. So lets get started.
Install JDK, just proceed with standard installation process.
Install Android Studio, just proceed with standard installation process. Please note that during the installation phase it will also download the Android SDK with is more than 3GB. PLEASE NOTE OF THE SDK INSTALLATION FOLDER AS THIS WILL BE USED ON LATER PROCEDURE.
Install Aptana, just proceed with standard installation process. Please also note that during installation phase it will also download some prerequisite application including Node.js& Git
Go to START and look for Command Prompt and run it as Administrator.
Type the command below and press enter and wait for the installation process to finish. It will take a while depending on your internet connection.