Skip to content

Commit a3d3192

Browse files
committed
updated npm instructions
1 parent 3d5b04a commit a3d3192

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,10 @@ tsc is the TypeScript compiler. We use tsc to compile TypeScript code into JavaS
133133
1. In you terminal window, enter the following command
134134
135135
```
136-
npm install -g typescript
136+
npm install --location=global typescript
137137
```
138138
139-
The `-g` installs this as a global package. The TypeScript compiler will be available to all directories for this user.
139+
The `--location=global` installs this as a global package. The TypeScript compiler will be available to all directories for this user.
140140
141141
You will see something similar to
142142

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

Lines changed: 2 additions & 2 deletions
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 you terminal window, enter the following command
159159
160160
```
161-
npm install -g typescript
161+
npm install --location=global typescript
162162
```
163163
164-
The `-g` installs this as a global package. The TypeScript compiler will be available to all directories for this user.
164+
The `--location=global` installs this as a global package. The TypeScript compiler will be available to all directories for this user.
165165
166166
You will see something similar to
167167

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@ tsc is the TypeScript compiler. We use tsc to compile TypeScript code into JavaS
6161
1. In your **Command Prompt** window, enter the following command
6262

6363
```
64-
npm install -g typescript
64+
npm install --location=global typescript
6565
```
6666

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

6969
You will see something similar to
7070

0 commit comments

Comments
 (0)