Skip to content

Commit 06d86c6

Browse files
committed
Merge pull request #614 from NativeScript/ikoevska/doctor-command
Documenting `$ tns doctor`
2 parents fc4a87b + 5b2b4d9 commit 06d86c6

12 files changed

+38
-14
lines changed

README.md

+27-3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ The NativeScript CLI lets you create, build, and deploy NativeScript-based proje
2222
* [Deploy Your Project](#deploy-your-project)
2323
* [Emulate Your Project](#emulate-your-project)
2424
* [Run Your Project](#run-your-project)
25+
* [Troubleshooting](#troubleshooting)
2526
* [Known Issues](#known-issues)
2627
* [How to Contribute](#how-to-contribute)
2728
* [License](#license)
@@ -130,7 +131,7 @@ If you have installed Chocolatey, you can complete these steps to set up JDK, Ap
130131
```Shell
131132
android update sdk
132133
```
133-
1. Select all packages for the Android 19 SDK and any other SDKs that you want to install and click **Install**.
134+
1. Select all packages for the Android 19 SDK and any other SDKs that you want to install, click **Install** and wait for the installation to complete.
134135

135136
## OS X
136137

@@ -157,7 +158,7 @@ Path to the platform-tools subdirectory in the Android SDK installation director
157158

158159
For example:
159160
```
160-
export PATH=${PATH}:/ant/apache-ant-1.9.4/bin:/Applications/Android Studio.app/sdk/tools:/Applications/Android Studio.app/sdk/platform-tools
161+
export PATH=${PATH}:/ant/apache-ant-1.9.4/bin:/Applications/Android\ Studio.app/sdk/tools:/Applications/Android\ Studio.app/sdk/platform-tools
161162
```
162163

163164
## Linux
@@ -215,6 +216,12 @@ Windows | `npm install nativescript -g` | `npm install nativescript -g`
215216
OS X | `sudo npm install nativescript -g --unsafe-perm` | `npm install nativescript -g`
216217
Linux | `sudo npm install nativescript -g --unsafe-perm` | `npm install nativescript -g`
217218

219+
To check if your system is configured properly, run the following command.
220+
221+
```Shell
222+
tns doctor
223+
```
224+
218225
## Configure Proxy Usage
219226

220227
If you are working with the NativeScript CLI behind a web proxy, you might need to configure your proxy settings.
@@ -484,6 +491,21 @@ tns run ios --emulator
484491

485492
[Back to Top][1]
486493

494+
Troubleshooting
495+
===
496+
497+
If the NativeScript CLI does not behave as expected, you might be facing a configuration issue. For example, a missing `JAVA` path. To check if your system is configured properly for the NativeScript CLI, run the following command.
498+
499+
```bash
500+
tns doctor
501+
```
502+
503+
This command prints warnings about current configuration issues and provides basic information about how to resolve them.
504+
505+
If addressing the configuration issues does not resolve your problem, you can [report an issue](CONTRIBUTING.md#report-an-issue) or [post in the NativeScript page in Google Groups](https://groups.google.com/forum/#!forum/nativescript).
506+
507+
[Back to Top][1]
508+
487509
Known Issues
488510
===
489511

@@ -494,6 +516,8 @@ Known Issues
494516
1. Provide your authentication credentials for accessing the Internet.
495517
1. Run the terminal and continue working with the NativeScript CLI.
496518

519+
[Back to Top][1]
520+
497521
How to Contribute
498522
===
499523

@@ -528,4 +552,4 @@ This software is licensed under the Apache 2.0 license, quoted <a href="LICENSE"
528552
[JDK 8]: http://www.oracle.com/technetwork/java/javase/downloads/index.html
529553
[Apache Ant 1.8]: http://ant.apache.org/bindownload.cgi
530554
[Android SDK 19]: http://developer.android.com/sdk/index.html
531-
[Genymotion]: https://www.genymotion.com/#!/
555+
[Genymotion]: https://www.genymotion.com/#!/

docs/man_pages/general/autocomplete-disable.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ Command | Description
1818
[autocomplete-enable](autocomplete-enable.html) | Configures your current command-line completion settings.
1919
[feature-usage-tracking](feature-usage-tracking.html) | Configures anonymous usage statistics tracking for the NativeScript command-line interface.
2020
[help](help.html) | Lists the available commands or shows information about the selected command.
21-
[doctor](doctor.html) | Checks your system and reports potential problems which may prevent developing with NativeScript.
21+
[doctor](doctor.html) | Checks your system for configuration problems which might prevent the NativeScript CLI from working properly.
2222
<% } %>

docs/man_pages/general/autocomplete-enable.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ Command | Description
1818
[autocomplete-disable](autocomplete-disable.html) | Disables command-line completion for bash and zsh shells.
1919
[feature-usage-tracking](feature-usage-tracking.html) | Configures anonymous usage statistics tracking for the NativeScript command-line interface.
2020
[help](help.html) | Lists the available commands or shows information about the selected command.
21-
[doctor](doctor.html) | Checks your system and reports potential problems which may prevent developing with NativeScript.
21+
[doctor](doctor.html) | Checks your system for configuration problems which might prevent the NativeScript CLI from working properly.
2222
<% } %>

docs/man_pages/general/autocomplete-status.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ Command | Description
1717
[autocomplete-disable](autocomplete-disable.html) | Disables command-line completion for bash and zsh shells.
1818
[feature-usage-tracking](feature-usage-tracking.html) | Configures anonymous usage statistics tracking for the NativeScript command-line interface.
1919
[help](help.html) | Lists the available commands or shows information about the selected command.
20-
[doctor](doctor.html) | Checks your system and reports potential problems which may prevent developing with NativeScript.
20+
[doctor](doctor.html) | Checks your system for configuration problems which might prevent the NativeScript CLI from working properly.
2121
<% } %>

docs/man_pages/general/autocomplete.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ Command | Description
2727
[autocomplete-enable](autocomplete-enable.html) | Configures your current command-line completion settings.
2828
[autocomplete-disable](autocomplete-disable.html) | Disables command-line completion for bash and zsh shells.
2929
[feature-usage-tracking](feature-usage-tracking.html) | Configures anonymous usage statistics tracking for the NativeScript command-line interface.
30-
[doctor](doctor.html) | Checks your system and reports potential problems which may prevent developing with NativeScript.
30+
[doctor](doctor.html) | Checks your system for configuration problems which might prevent the NativeScript CLI from working properly.
3131
<% } %>

docs/man_pages/general/doctor.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ Usage | Synopsis
55
------|-------
66
General | `$ tns doctor`
77

8-
Checks your system and reports potential problems which may prevent developing with NativeScript.
9-
8+
Checks your system for configuration problems which might prevent the NativeScript CLI from working properly.
109

1110
<% if(isHtml) { %>
1211
### Related Commands

docs/man_pages/general/feature-usage-tracking-disable.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ Command | Description
1818
[autocomplete-status](autocomplete-status.html) | Prints the current status of your command-line completion settings.
1919
[autocomplete-enable](autocomplete-enable.html) | Configures your current command-line completion settings.
2020
[autocomplete-disable](autocomplete-disable.html) | Disables command-line completion for bash and zsh shells.
21-
[doctor](doctor.html) | Checks your system and reports potential problems which may prevent developing with NativeScript.
21+
[doctor](doctor.html) | Checks your system for configuration problems which might prevent the NativeScript CLI from working properly.
2222
<% } %>

docs/man_pages/general/feature-usage-tracking-enable.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ Command | Description
1818
[autocomplete-status](autocomplete-status.html) | Prints the current status of your command-line completion settings.
1919
[autocomplete-enable](autocomplete-enable.html) | Configures your current command-line completion settings.
2020
[autocomplete-disable](autocomplete-disable.html) | Disables command-line completion for bash and zsh shells.
21-
[doctor](doctor.html) | Checks your system and reports potential problems which may prevent developing with NativeScript.
21+
[doctor](doctor.html) | Checks your system for configuration problems which might prevent the NativeScript CLI from working properly.
2222
<% } %>

docs/man_pages/general/feature-usage-tracking-status.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ Command | Description
1818
[autocomplete-status](autocomplete-status.html) | Prints the current status of your command-line completion settings.
1919
[autocomplete-enable](autocomplete-enable.html) | Configures your current command-line completion settings.
2020
[autocomplete-disable](autocomplete-disable.html) | Disables command-line completion for bash and zsh shells.
21-
[doctor](doctor.html) | Checks your system and reports potential problems which may prevent developing with NativeScript.
21+
[doctor](doctor.html) | Checks your system for configuration problems which might prevent the NativeScript CLI from working properly.
2222
<% } %>

docs/man_pages/general/feature-usage-tracking.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ Command | Description
2727
[autocomplete-status](autocomplete-status.html) | Prints the current status of your command-line completion settings.
2828
[autocomplete-enable](autocomplete-enable.html) | Configures your current command-line completion settings.
2929
[autocomplete-disable](autocomplete-disable.html) | Disables command-line completion for bash and zsh shells.
30-
[doctor](doctor.html) | Checks your system and reports potential problems which may prevent developing with NativeScript.
30+
[doctor](doctor.html) | Checks your system for configuration problems which might prevent the NativeScript CLI from working properly.
3131
<% } %>

docs/man_pages/general/help.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ Command | Description
2020
----------|----------
2121
[feature-usage-tracking](feature-usage-tracking.html) | Configures anonymous usage statistics tracking for the NativeScript CLI.
2222
[autocomplete](autocomplete.html) | Prints your current command-line completion settings. If disabled, prompts you to enable it.
23-
[doctor](doctor.html) | Checks your system and reports potential problems which may prevent developing with NativeScript.
23+
[doctor](doctor.html) | Checks your system for configuration problems which might prevent the NativeScript CLI from working properly.
2424
<% } %>

docs/man_pages/index.md

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Command | Description
1212
[help `<Command>`](general/help.html) | Shows additional information about the commands in this list in the browser.
1313
[autocomplete](general/autocomplete.html) | Configures your current command-line completion settings.
1414
[feature-usage-tracking](general/feature-usage-tracking.html) | Configures anonymous feature usage tracking.
15+
[doctor](doctor.html) | Checks your system for configuration problems which might prevent the NativeScript CLI from working properly.
1516

1617
## Project Development Commands
1718
Command | Description

0 commit comments

Comments
 (0)