Node-RED: install, easily uninstall modules [Exclusive Guide]
there are a very large number of modules ( Nodes ) and Flows for Node-RED available on the Bookstore online http://flows.nodered.org/ . It is very easy to manage the modules installed on directly from the browser without using the command lines. The palette Manager allows to enable or disable Nodes included in each module, to install or uninstall modules without even having to leave RED Node.
all modules (Nodes) and flows (pieces of code) are referenced in the Bookstore official Red Node to this page https://flows.nodered.org/
you can filter the Flows or Nodes separately and combine with a keyword search.
the flows can be shared by everyone (without control) in the bookstore Node-RED. He must have a GitHub account to share your flows. A flow is a function that allows to perform a function. Some examples of
once you have found what you need, go to the page of the flow and select the code of it (it goes in blue), copy the
in the box Import nodes , paste the code. You can create a new node in the flow of current (current flow) or create a new one (new flow). Finish with Import .
the Node added, it remains more to use it in a Flow.
before we look at how to install modules from the WEB interface, it may be useful to manage plugins through the Terminal. Indeed, it is possible to install and activate the nodes provided by plugins from the WEB interface, but it is not possible to uninstall a plugin already used by a Flow.
it is not necessary to stop RED Node to install new modules, but for it to be taken into account, it will take anyway to reboot, so much to do things. So first stop with this command (no need to be placed in the directory Node).
Node-RED uses Node.js to run. The modules are managed by npm. Installing a plugin will be always by an order of this type. [
sudo npm install node-red-contrib-NOM_DU_MODULE
it is preferable to place in the Node directory
for example install the module node-red-dashbord (the successor of the module node-red- contrib-ui ) which allows to add a GUI to a Node-RED project.
you start the installation of the module with the following command
sudo npm install node-red-dashboard
at the end of the installation, npm reference a report of installed dependencies.
and refresh the view of the browser. The new palette dashboard is now available.
manual uninstall of a module
to uninstall a module, use the command
npm PackageName uninstall
However, it is not possible to uninstall a module in use. That means clear all Nodes of the plugin concerned before you uninstall it. Quickly, it can be problematic for some modules which add elements. For example the plugin contrib-ui (replaced by Dashboard ) created the ui_tab to delete manually before you can remove the module.
then run the command
npm uninstall node-red-dashboard
from the WEB interface, open the menu and select Manage Palette.
the Manager opens to the left of the screen instead of the pallets. It consists of two tabs. Nodes are all modules installed in the tab. You can disable all Nodes at once by pressing disable all . remove button to uninstall the module. Beware, the button remains grayed out as long as the Nodes of the module are in use. After removing all the Nodes of the flow, consider deployer again to release the Nodes.
by unfolding a Node, it is possible to enable or disable each Node proposed by each module. It helps lighten the palette.
tab Install allows you to search in the Bookstore Node-RED of the modules by keyword. An example with the keyword dashboard. A click on install starts the installation and activation of the module. However, it is necessary to refresh the display of the browser manually to make the new palette appears.
other items to go further with Node-RED