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: content/learning-paths/servers-and-cloud-computing/typescript-on-gcp/installation.md
+20-10Lines changed: 20 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,35 +7,44 @@ layout: learningpathall
7
7
---
8
8
9
9
## Install TypeScript on GCP VM
10
-
This page guides you through installing **TypeScript** and its prerequisites on a **GCP SUSE Arm64 VM**. We will install Node.js, npm, TypeScript, and ts-node, and verify that everything works correctly.
10
+
This section walks you through installing TypeScript and its dependencies on a Google Cloud Platform (GCP) SUSE Arm64 virtual machine. You’ll install Node.js, npm, TypeScript, and ts-node, and verify that everything works correctly.
11
+
12
+
Running TypeScript on Google Cloud C4A instances, powered by Axion Arm64 processors, provides a high-performance and energy-efficient platform for Node.js-based workloads.
11
13
12
14
### Update SUSE System
13
-
Before installing new packages, refresh the repositories and update existing packages:
15
+
Before installing new packages, refresh the repositories and update existing ones to ensure your environment is current and secure:
14
16
15
17
```console
16
18
sudo zypper refresh
17
19
sudo zypper update -y
18
20
```
19
-
This ensures that your VM has the latest package information and security updates.
21
+
Keeping your system up to date ensures that dependencies, libraries, and compilers required for Node.js and TypeScript work seamlessly on the Arm64 architecture.
20
22
21
23
### Install Node.js and npm
22
-
Node.js is required to run TypeScript scripts, and npm is the Node.js package manager:
24
+
Node.js provides the JavaScript runtime that powers TypeScript execution, while npm (Node Package Manager) manages project dependencies and global tools.
25
+
26
+
Install both packages using SUSE’s repositories:
23
27
24
28
```console
25
29
sudo zypper install -y nodejs npm
26
30
```
27
-
The above command installs Node.js runtime and npm on your GCP SUSE VM.
31
+
This command installs the Node.js runtime and npm package manager on your Google Cloud SUSE Arm64 VM.
28
32
29
33
### Install TypeScript globally
30
-
TypeScript (`tsc`) compiles `.ts` files to JavaScript, and ts-node allows you to run TypeScript directly without compiling:
34
+
TypeScript (tsc) is the compiler that converts .ts files into JavaScript.
35
+
`ts-node` lets you run TypeScript files directly without pre-compiling them. It is useful for testing, scripting, and lightweight development workflows.
36
+
37
+
Install both globally using npm:
31
38
32
39
```console
33
40
sudo npm install -g typescript ts-node
34
41
```
35
-
- Installing globally (`-g`) makes `tsc` and `ts-node` available in any directory on your VM.
42
+
The `-g` flag installs packages globally, making tsc and ts-node available system-wide.
43
+
44
+
This approach simplifies workflows for developers running multiple TypeScript projects on the same VM.
36
45
37
46
### Verify installations
38
-
Check that Node.js, npm, TypeScript, and ts-node are installed correctly:
47
+
Check that Node.js, npm, TypeScript, and ts-node are all installed correctly:
39
48
40
49
```console
41
50
node -v
@@ -44,7 +53,7 @@ tsc -v
44
53
ts-node -v
45
54
```
46
55
47
-
**Output:**
56
+
The expected output is:
48
57
49
58
```output
50
59
>node -v
@@ -57,4 +66,5 @@ Version 5.9.3
57
66
v10.9.2
58
67
```
59
68
60
-
These version outputs confirm that the Node.js and TypeScript are installed correctly and are ready for development or benchmarking.
69
+
Node.js, npm, and TypeScript are now successfully installed and verified on your Google Cloud C4A (Arm64) virtual machine.
70
+
You’re ready to create and execute TypeScript scripts for testing, deployment, or performance benchmarking.
0 commit comments