Skip to content

Commit 830ba8f

Browse files
danielhelfandhansl
authored andcommitted
docs: add local installation and specific version installation instructions
1 parent 8872205 commit 830ba8f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

packages/angular/cli/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,24 @@ with NPM 5.5.1 or higher.
4242
## Installation
4343

4444
**BEFORE YOU INSTALL:** please read the [prerequisites](#prerequisites)
45+
46+
### Install Globablly
4547
```bash
4648
npm install -g @angular/cli
4749
```
4850

51+
### Install Locally
52+
```bash
53+
npm install @angular/cli
54+
```
55+
56+
To run a locally installed version of the angular-cli, you can call `ng` commands directly using your file path to where the `ng` package is installed locally, or you can use `npm run ng <command>`, which will look for locally installed packages before using a globally installed version.
57+
58+
### Install Specific Version (Example: 6.1.1)
59+
```bash
60+
npm install -g @angular/[email protected]
61+
```
62+
4963
## Usage
5064

5165
```bash

0 commit comments

Comments
 (0)