A further problem with the pi install script on Ubuntu 18.04. I gather that the install package for node.js on the pi automatically install npm. On Ubuntu this does not seem to be the case. The result is that after installing node the test for npm fails. Unfortunately the obvious workaround of installing npm first does not work as the install script removes it again so still fails. I had to insert
sudo apt install npm
before the test to get it to work. Would the best thing be to test for the presence of npm after installing node and if it is not present then install it?