Or copy link
Copy link
Node-RED is a powerful flow based programming tool that allows you to connect hardware devices, APIs, and online services. It is a great choice for building IoT applications automating tasks and creating web based dashboards.
In this post, we will discuss the step by step of installing Node-RED on the Windows operating system. Furthermore, we will cover the troubleshooting step during the installation of Node-RED.
Node-RED developed by IBM is a powerful tool that enables users to create visually driven applications. Through its node based architecture it simplifies connecting various systems. Whether you are new to coding Node-RED’s visual approach makes it easily accessible.
Following are steps described below to install Node-RED Windows operating system:
Node-RED runs on Node.js so you will need to have it installed first. Visit the official Node.js website. You will find two versions:
For most users, the LTS version is recommended for stability. Once downloaded, follow our guide on how to install Node.js and NPM on Windows operating system. After that check Node.js and NPM stands for Node Package Manager are installed correctly, open Command Prompt, and type the following:
node -v
npm -v
This should display the installed versions of Node.js and npm.
To download Node-RED Windows with Node.js installed you can now proceed. This is done via the npm, make sure you have administrative privileges. In the Command Prompt, type:
npm install -g --unsafe-perm node-red
The -g flag installs Node-RED globally, making it available from any directory. The --unsafe-perm flag allows the installation to be complete without certain permission issues that might occur on Windows.
-g
--unsafe-perm
Install Node-RED On Our NodeJS Hosting!
Unlock the full potential of your Node.js applications with Ultahost’s reliable hosting solutions. From seamless deployment to robust performance, we’ve got you covered.
Once Windows install Node-RED, running Node-RED is simple. In the Command Prompt, simply type:
node-red
This will start the Node-RED server. The command prompt will show the server logs, and you’ll see something like this:
Open your web browser and navigate to http://127.0.0.1:1880/. This will bring you to the Node-RED flow editor.
http://127.0.0.1:1880/
Learn about How to Install Arduino IDE on Windows.
Now that Node-RED is up and running let’s understand how to use Node-RED on the Windows operating system:
In the editor, you will see a palette on the left containing various nodes.
Drag and drop an inject node and debug node that helps generate messages and logs output onto the canvas.
inject
debug
Connect the inject node to the debug node by clicking and dragging a line between the output port of the inject node to the input port of the debug node.
Click the inject node to configure it. You can set a payload value like a simple string like “Hello, Node-RED!”. Click Done to save the configuration.
Done
Click the Deploy button in the top right corner to deploy your flow.
Deploy
Click the button on the left of the inject node. The debug tab on the right will show the message “Hello, Node-RED!”.
The true power of Node-RED lies in its extensive library of additional nodes which you can install to extend its functionality.
Visit the Node-RED library to search for nodes that suit your needs.
In the Node-RED editor click the menu button in the top right corner then select Manage palette.
Manage palette
In the Palette tab click Install then search for the node you want to install for example node-red-dashboard.
Palette
Install
node-red-dashboard
Click Install next to the desired package.
To have Node-RED start automatically when your computer boots up, you can set it up as a service.
You need to install NSSM stands for Non-Sucking Service Manager is a tool that can help with this. Download it from the NSSM website.
After downloading, extract the NSSM zip file to a directory. Open the Command Prompt as an administrator. Navigate to the extracted NSSM directory. Run the following command to install Node-RED as a service:
nssm install NodeRED
In the GUI that appears enter the path to the Node.js executable usually C:\Program Files\nodejs\node.exe and the path to the Node-RED script C:\Users\yourusername\AppData\Roaming\npm\node-red.cmd.
C:\Program Files\nodejs\node.exe
C:\Users\yourusername\AppData\Roaming\npm\node-red.cmd
Click Install Service. After installing the service, you can start it by running:
nssm start NodeRED
To ensure the service starts automatically check your services list by typing services.msc in the Run dialog and set the NodeRED service to Automatic.
services.msc
Installing Node-RED on Windows is a simple process involving the installation of Node.js followed by Node-RED itself. Once set up Node-RED provides a versatile platform for creating and managing workflows integrating various services and devices seamlessly. By following this guide you should be well on your way to leveraging the full potential of Node-RED in IoT projects.
While installing Node-RED on Windows is simple but managing dependencies and ensuring compatibility across different server environments can be technical. Upgrading to Ultahost’s Windows VPS hosting plan empowers you with a robust solution that helps you to install the latest package managers and repositories simplifying Node-RED installation and updates.
Node-RED is a tool for wiring together devices, APIs, and online services.
Install Node.js first, then install Node-RED using the npm command.
Yes, Node.js is required to run Node-RED on Windows.
Run npm install -g node-red in your command prompt.
Yes, Node-RED works on Windows 10 and later versions.
Use the command node-red in your terminal to start it.
Yes, Node-RED is an open-source tool and free to use.
Dig a powerful network tool is valuable for DNS stands ...
Docker is a containerization platform that enables the ...
Selenium WebDriver is a powerful tool for automating we...
TeamViewer is a powerful remote access and control tool...
Postman, a well-known name in the API development track...
SQL Server is a relational database management system (...
Save my name, email, and website in this browser for the next time I comment.
Δ