File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -158,10 +158,10 @@ tsc is the TypeScript compiler. We use tsc to compile TypeScript code into JavaS
158
158
1. In your terminal window, enter the following command
159
159
160
160
```
161
- npm install --location=global typescript@4.6.4
161
+ npm install -g typescript@4.6.4
162
162
```
163
163
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.
165
165
166
166
2. You can verify the installation
167
167
Original file line number Diff line number Diff line change @@ -209,10 +209,10 @@ tsc is the TypeScript compiler. We use tsc to compile TypeScript code into JavaS
209
209
1. In your terminal window, enter the following command
210
210
211
211
```
212
- npm install --location=global typescript@4.6.4
212
+ npm install -g typescript@4.6.4
213
213
```
214
214
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.
216
216
217
217
2. You can verify the installation
218
218
Original file line number Diff line number Diff line change @@ -78,10 +78,10 @@ tsc is the TypeScript compiler. We use tsc to compile TypeScript code into JavaS
78
78
1. In your ** Command Prompt** window, enter the following command
79
79
80
80
```
81
- npm install --location=global typescript@4.6.4
81
+ npm install -g typescript@4.6.4
82
82
```
83
83
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.
85
85
86
86
2. You can verify the installation
87
87
You can’t perform that action at this time.
0 commit comments