Not much help but I had an old stretch version of RPi for Desktop in VirtualBox vm so I gave the script a go on that and it failed on me as well - different error messages (stuff about nvm) but fail just the same
Maybe just use an 64bit Ubunutu VM like what @dceejay recommended if you want to try out NR on a VM?