Install Failed on Ubuntu Mate on Raspberry Pi 3B

I tryed to install Node-RED using script for Debian:

bash <(curl -sL

but install failed.

Update Node.js LTS  ✘ Failed to install Node.js - Exit.

OS: Ubuntu MATE 18.04 LTS
Hardware: Raspberry Pi 3 Model B

I found following message in /var/log/nodered-install.log:

gpg: can't connect to the agent: IPC connect call failed

I tryed to install node.js 12.x before installing Node-RED.

curl -sL | sudo -E bash -
sudo apt-get install -y nodejs

After installing node.js 12.x, I retried to install Node-RED using script for Debian:

bash <(curl -sL

Install succeeded.

I think this is strange.
Is there something to wrong in the install script for Debian?

the failure is down to the gpg error - presumably then not allowing it to install nodejs - This is not a common error (if you google it) - and seems to be to do with the underlying OS install - so not something we can really anticipate or handle.
Installing manually as you did is the easy and best way round it I suspect.

I did not do anything special while installing OS...
For now, I use this workaround.
Thank you.