Skip to content

Commit ef8cdcc

Browse files
committed
Merge pull request #330 from NativeScript/ikoevska/proxy
Working with proxies
2 parents c7225b4 + 5647abe commit ef8cdcc

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

+16
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ The NativeScript CLI lets you create, build, and deploy NativeScript-based proje
1010
* [Supported Platforms](#supported-platforms "The mobile platforms you can target with NativeScript")
1111
* [System Requirements](#system-requirements "The hardware and software requirements for setting up and working with the NativeScript CLI")
1212
* [Installation](#installation "How to configure and install the NativeScript CLI")
13+
* [Install the NativeScript CLI](#install-the-nativescript-cli)
14+
* [Configure Proxy Usage](#configure-proxy-usage)
1315
* [Quick Start](#quick-start "Get started with the NativeScript CLI")
1416
* [The Commands](#the-commands)
1517
* [Create Project](#create-project)
@@ -203,6 +205,8 @@ export PATH=${PATH}:/ant/apache-ant-1.9.4/bin:/Applications/Android Studio.app/s
203205
Installation
204206
===
205207

208+
## Install the NativeScript CLI
209+
206210
The NativeScript CLI is available for installing as an npm package.
207211

208212
In the command prompt, run the following command.
@@ -213,6 +217,18 @@ npm install nativescript -g
213217

214218
> On OS X and Linux systems, you might need to run this command using sudo.
215219
220+
## Configure Proxy Usage
221+
222+
If you are working with the NativeScript CLI behind a web proxy, you might need to configure your proxy settings.
223+
224+
1. On your file system, locate the directory where the **nativescript** npm package is installed.
225+
1. In a text editor, open `config` → `config.json`.
226+
1. Set `USE_PROXY` to `true`.
227+
1. Set `PROXY_PORT`.
228+
1. Set `PROXY_HOSTNAME`.
229+
230+
> Make sure to preserve the quotation marks and commas as in the initial `config.json` file.
231+
216232
[Back to Top][1]
217233

218234
Quick Start

0 commit comments

Comments
 (0)