Skip to content

Commit 6766208

Browse files
authored
Update installation.md
1 parent c769d9a commit 6766208

1 file changed

Lines changed: 20 additions & 10 deletions

File tree

  • content/learning-paths/servers-and-cloud-computing/typescript-on-gcp

content/learning-paths/servers-and-cloud-computing/typescript-on-gcp/installation.md

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,35 +7,44 @@ layout: learningpathall
77
---
88

99
## 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.
1113

1214
### 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:
1416

1517
```console
1618
sudo zypper refresh
1719
sudo zypper update -y
1820
```
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.
2022

2123
### 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:
2327

2428
```console
2529
sudo zypper install -y nodejs npm
2630
```
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.
2832

2933
### 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:
3138

3239
```console
3340
sudo npm install -g typescript ts-node
3441
```
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.
3645

3746
### 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:
3948

4049
```console
4150
node -v
@@ -44,7 +53,7 @@ tsc -v
4453
ts-node -v
4554
```
4655

47-
**Output:**
56+
The expected output is:
4857

4958
```output
5059
>node -v
@@ -57,4 +66,5 @@ Version 5.9.3
5766
v10.9.2
5867
```
5968

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

Comments
 (0)