You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/man_pages/project/configuration/install.md
+12-6
Original file line number
Diff line number
Diff line change
@@ -3,18 +3,24 @@ install
3
3
4
4
Usage | Synopsis
5
5
---|---
6
-
General | `$ tns install [--path]`
6
+
Install all dependencies | `$ tns install [--path]`
7
+
Install a selected npm module | `$ tns install <Module>`
8
+
Enable TypeScript support | `$ tns install typescript`
7
9
8
-
Installs all platforms and dependencies described in the `package.json`file in the current directory.
10
+
Installs all dependencies described in a valid `package.json`or installs a selected NativeScript development module as a dev dependency.
9
11
10
-
<% if(isHtml) { %>
11
-
The `package.json` file must be a valid `package.json` describing the configuration of a NativeScript project. If missing or corrupted, you can recreate the file by running `$ tns init` in the directory of a NativeScript project.
12
+
<% if(isHtml) { %>
13
+
The `package.json` file must be a valid `package.json` describing the configuration of a NativeScript project. If missing or corrupted, you can recreate the file by running `$ tns init` in the directory of a NativeScript project.
12
14
<% } %>
13
15
14
16
### Options
15
17
*`--path` - Specifies the directory which contains the `package.json` file, if different from the current directory.
16
18
17
-
<% if(isHtml) { %>
19
+
### Arguments
20
+
*`<Module>` - Specifies a NativeScript development module by path to a local directory containing a valid npm module or by name in the npm registry.<% if(isHtml) { %> When a `<Module>` is specified, this command adds the module as a dev dependency in your `package.json`.
21
+
22
+
> **TIP:** When installing a module from the npm registry, you can specify it by full name or suffix. NativeScript development modules are published in the npm registry with the following name format: `nativescript-dev-<suffix>`.
23
+
18
24
### Related Commands
19
25
20
26
Command | Description
@@ -24,4 +30,4 @@ Command | Description
24
30
[platform update](platform-update.html) | Updates the NativeScript runtime for the specified platform.
25
31
[platform](platform.html) | Lists all platforms that the project currently targets.
26
32
[prepare](prepare.html) | Copies common and relevant platform-specific content from the app directory to the subdirectory for the selected target platform in the platforms directory.
0 commit comments