Skip to content

Commit 8f5587d

Browse files
committed
update installation instructions for tsc
1 parent 47ef051 commit 8f5587d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

install-angular-tools/linux/install-linux.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@ tsc is the TypeScript compiler. We use tsc to compile TypeScript code into JavaS
158158
1. In your terminal window, enter the following command
159159
160160
```
161-
npm install --location=global [email protected]
161+
npm install -g [email protected]
162162
```
163163
164-
The `--location=global` installs this as a global package. The TypeScript compiler will be available to all directories for this user.
164+
The `-g` installs this as a global package. The TypeScript compiler will be available to all directories for this user.
165165
166166
2. You can verify the installation
167167

install-angular-tools/mac/install-mac.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,10 @@ tsc is the TypeScript compiler. We use tsc to compile TypeScript code into JavaS
209209
1. In your terminal window, enter the following command
210210
211211
```
212-
npm install --location=global [email protected]
212+
npm install -g [email protected]
213213
```
214214
215-
The `--location=global` installs this as a global package. The TypeScript compiler will be available to all directories for this user.
215+
The `-g` installs this as a global package. The TypeScript compiler will be available to all directories for this user.
216216
217217
2. You can verify the installation
218218

install-angular-tools/ms-windows/install-ms-windows.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ tsc is the TypeScript compiler. We use tsc to compile TypeScript code into JavaS
7878
1. In your **Command Prompt** window, enter the following command
7979

8080
```
81-
npm install --location=global [email protected]
81+
npm install -g [email protected]
8282
```
8383

84-
The "--location=global" installs this as a global package. The TypeScript compiler will be available to all directories for this user.
84+
The `-g` installs this as a global package. The TypeScript compiler will be available to all directories for this user.
8585

8686
2. You can verify the installation
8787

0 commit comments

Comments
 (0)