Struggling to install shiny server on Raspberry pi 4

Thanks. I am sorry: I am working rather beyond the edge of my competences here. I am sure your interpretation of the problem is correct and exactly what I was looking for. Sadly, after running those lines I don't seem to have solved the problem and I wonder if you and I are talking about the same installation instructions. I was working from Building Shiny Server from Source · rstudio/shiny-server Wiki · GitHub and I don't see anything about Joe Cheng's repository there. I think you are referring to your instructions at Setting up your own shiny-server / rstudio-server on a Raspberry Pi 3B+

So I copied your "install shiny-server" command block there and tweaked it to this (in a file tmp which I made executable!)

root@raspberrypi:/home/chris# cat tmp
git clone https://github.com/rstudio/shiny-server.git
cd shiny-server
DIR=`pwd`
PATH=$DIR/bin:$PATH
mkdir tmp
cd tmp
PYTHON=`which python`
sudo cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DPYTHON="$PYTHON" ../
sudo make
mkdir ../build
### commented out 26.iii.21
# sed -i '8s/.*/NODE_SHA256=a865e69914c568fcb28be7a1bf970236725a06a8fc66530799300181d2584a49/' ../external/node/install-node.sh # node-v12.15.0-linux-armv7l.tar.xz
# sed -i 's/linux-x64.tar.xz/linux-armv7l.tar.xz/' ../external/node/install-node.sh
# sed -i 's/https:\/\/github.com\/jcheng5\/node-centos6\/releases\/download\//https:\/\/nodejs.org\/dist\//' ../external/node/install-node.sh
### replaced with these lines from https://forum.posit.co/t/struggling-to-install-shiny-server-on-raspberry-pi-4/100152/4
sed -i '8s/.*/NODE_SHA256=abef7d431d6d0e067fe5797d4fe44039a5577f01ed9e40d7a3496cbb22502f55/' ../external/node/install-node.sh # node-v12.20.0-linux-armv7l.tar.xz
sed -i 's/linux-x64.tar.xz/linux-armv7l.tar.xz/' ../external/node/install-node.sh
sed -i 's/https:\/\/github.com\/jcheng5\/node-centos6\/releases\/download\//https:\/\/nodejs.org\/dist\//' ../external/node/install-node.sh
### end of tweaks
(cd .. && sudo ./external/node/install-node.sh)
(cd .. && ./bin/npm --python="${PYTHON}" install --no-optional)
(cd .. && ./bin/npm --python="${PYTHON}" rebuild)
sudo make install

That runs up to this:

CMake Error at cmake_install.cmake:41 (file):
  file INSTALL cannot find "/home/chris/shiny-server/node_modules": No such
  file or directory.


make: *** [Makefile:108: install] Error 1

I feel I'm nearly there ... but not quite. I hugely appreciate your taking the time to help! Can you see the next (last?!) step I need to fix things? TIA, Chris