Where is the correct place to run shell commands to `clone git` repo and run `npm install` for setting up custom nodes in Node-RED?

I use the community Node-RED addon (https://github.com/hassio-addons/addon-node-red) with my current Home Assistant setup. My set up is like this: SSD booting Raspbian Buster on Pi4, Hassio on top of that (Rpi 4 installation 6). (“On top” are words used in the guide.)

Right now I am experimenting with tensorflow in Node-RED (on my Pi4). I wish to follow this tutorial, https://github.com/IBM/node-red-tensorflowjs, to set things up correct.

One of the steps, in the tutorial, is to clone the node-red-tensorflowjs repo:

  1. $ git clone https://github.com/IBM/node-red-tensorflowjs

next step is to move into the directory of the cloned repo:
2. $ cd node-red-tensorflowjs

.
(many steps further)
.

X.

cd ~/.node-red
npm install <full path>/node-red-contrib-tfjs-object-detection
npm install node-red-contrib-browser-utils node-red-contrib-play-audio node-red-contrib-image-output

My problem is not exactly related to Node-RED. I wonder where I should type $ git clone https://github.com/IBM/node-red-tensorflowjs, $ cd node-red-tensorflowjs resp. npm install <full path>/node-red-contrib-tfjs-object-detection (and all other terminal commands in the guide)?

I guess that this is more complicated (container/docker) than to SSH into the base OS (Raspbian Buster)?
Are there any equivalent Linux terminal somewhere where I should put my Node-RED related shell commands? (I am aware of the npm_packages: alternative in config section but that does not help me in this case.)