My random rumblings

Something of everything and nothing at all

Apache Cordova

Copied from the following link: https://msdn.microsoft.com/library/dn771551(v=vs.140).aspx#vstac

Configure tools to work with a proxy

If you are using Visual Studio behind a proxy, such as a corporate firewall, you may need to configure proxy settings for the npm package manager and for git before you can use Visual Studio Tools for Apache Cordova.

Important

Using npm proxy settings with recent versions of Node.js can cause Cordova to fail to acquire plugins at the command line or in the configuration designer or when adding platforms required for build. If you encounter unexpected issues (particularly a "TypeError: Request path contains unescaped characters" error), try downgrading Node.js to 0.10.29.

To configure proxy settings for npm package manager

  1. Close Visual Studio
  2. Open a Visual Studio developer command window (Ctrl + Alt + A) and type the following command.

    npm -g uninstall vs-tac

  3. Open %AppData%\npm\node_modules and verify that the vs-tac folder has been removed.
  4. npm config set proxy <proxy-port>

    where proxy-port is the proxy address and port number, such as http://proxy.mycompany.com:80/

  5. npm config set https-proxy <proxy-port>

    where proxy-port might be a value such as http://proxy.mycompany.com:80/.

  6. Open Visual Studio.
  7. Open your Apache Cordova solution and rebuild your project.
Loading