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
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,18 +3,20 @@ install
3
3
4
4
Usage | Synopsis
5
5
---|---
6
-
General | `$ tns install [--path]`
6
+
General | `$ tns install [module] [--path]`
7
7
8
-
Installs all platforms and dependencies described in the `package.json` file in the current directory.
8
+
When executed without a `module` argument - install all platforms and dependencies described in the `package.json` file in the current directory.
9
9
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.
10
+
When a `module` argument is given - install the specified npm module. If `module` is a path to an existing directory, then the npm module from that path is installed. If `module` does not refer to an existing directory, then the module with the name `nativescript-dev-<module>` is installed from the npm registry. This command is intended for installing NativeScript-related development modules. For example, by executing `tns install typescript`, TypeScript support is installed into the project. Look for modules in the npm registry whose name starts with `nativescript-dev` to discover other development modules for NativeScript.
11
+
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.
0 commit comments