Update Node.js and Node-Red on the Enterprise Gateways

If you receive error messages when opening Node-Red after an update use the following commands:

cd ~/.node-red
npm rebuild
npm install
npm rebuild
pm2 restart all

If you are still getting errors in node-red after that you can try to completely uninstall and reinstall the node-red-enterprise-sensors library. This library requires compiling so any update to Node.js may need to be cleared and recompiled from scratch.

cd ~/.node-red
npm uninstall @ncd-io/node-red-enterprise-sensors
rm -rf ~/.node-red/node_modules/@ncd-io
npm install @ncd-io/node-red-enterprise-sensors

Read more here: Source link