Skip to content

Instantly share code, notes, and snippets.

@hj91
Created June 23, 2024 08:02
Show Gist options
  • Save hj91/30d2de785497f516e742ed086a26b650 to your computer and use it in GitHub Desktop.
Save hj91/30d2de785497f516e742ed086a26b650 to your computer and use it in GitHub Desktop.
Install node-red-contrib-influxdb latest node
#!/bin/bash
# Update package list and install npm if it's not already installed - package is installed by default on Bufferstack.IO IIoT Gateway
if ! command -v npm &> /dev/null
then
echo "npm could not be found. Installing npm..."
sudo apt-get update
sudo apt-get install -y npm
else
echo "npm is already installed."
fi
# Install node-red-contrib-influxdb globally
echo "Installing node-red-contrib-influxdb globally..."
sudo npm install -g node-red-contrib-influxdb@latest
echo "Installation complete. Run Node-RED and check the influxdb node"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment