From af26dafce93ac860675df801e51c666822e30d84 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sven=20M=C3=A4der?= <maeder@phys.ethz.ch>
Date: Thu, 23 Jan 2025 15:04:57 +0100
Subject: [PATCH] Add angular cli install example

---
 linux/workstation/nodejs.markdown | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/linux/workstation/nodejs.markdown b/linux/workstation/nodejs.markdown
index 36d9e78c..ab779894 100644
--- a/linux/workstation/nodejs.markdown
+++ b/linux/workstation/nodejs.markdown
@@ -6,7 +6,7 @@ Node.js
 Installation
 ------------
 
-You can install nodejs as user on any linux workstation.
+You can install `node`, `npm` and `yarn` as user on any linux workstation.
 Get the current stable [node version](https://nodejs.org/en) and install a prebuilt release using `nodeenv`:
 
 ```sh
@@ -28,3 +28,19 @@ user@host:/scratch/user$ npm --version
 user@host:/scratch/user$ yarn --version
 1.22.22
 ```
+
+Package installation
+--------------------
+
+Example to install the angular cli (`ng`):
+
+```sh
+user@host:/scratch/user$ npm install -g --no-package-lock --no-save @angular/cli
+...
+user@host:/scratch/user$ which ng
+/scratch/user/.nodeenv/bin/ng
+user@host:/scratch/user$ ng --version
+19.1.4
+```
+
+This [youtube video](https://www.youtube.com/shorts/xqnCUPUeCJg) explaines what is happening in the background.
-- 
GitLab