IG
su iobroker
sudo apt-get --purge remove node
sudo apt-get --purge remove nodejs
sudo apt-get autoremove
sudo reboot
su iobroker
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs
sudo apt-get update
sudo apt-get install -y build-essential python
sudo apt-get install netcat
sudo apt-get install -y git-core libnss-mdns libavahi-compat-libdnssd-dev libudev-dev libpam0g-dev
sudo apt-get install build-essential libpcap-dev
после установки ноды, обнови нпм
sudo npm i npm@latest -g
sudo npm install -g node-gyp node-pre-gyp hap-nodejs