Introduction
This post will show you how to install the Node-Red application in your workstation running the Windows or PC operating system.
Prerequisites
You should have a workstation with sufficient memory, CPU power, and admin privileges. It should be running a version greater than Windows 7 and should not be running Windows Server 2008R2.
How to install Node-Red on Windows or PC?
Install Node.js
Download and install the latest stable Node.js release.
Related Content:
Install Node.js on Windows
By default, the npm tool is installed together with the Node.js installation. Validate the version of both software by executing the below command in your command prompt.
C:\Users\DONSKY>node -v
v18.13.0
C:\Users\DONSKY>npm -v
8.19.3
Install Node-Red
Install the Node-Red application by executing the below command.
npm install -g --unsafe-perm node-red
Running Node-Red
To run your Node-Red installation then execute the below command.
node-red
You should be seeing the following messages displayed at your command prompt.
8 Feb 23:15:08 - [info] Server now running at http://127.0.0.1:1880/
8 Feb 23:15:08 - [warn] Encrypted credentials not found
8 Feb 23:15:08 - [info] Starting flows
8 Feb 23:15:08 - [info] Started flows
Note: You should keep this terminal open while you are working with Node-Red.
Open your browser and type in the following URL.
http://localhost:1880

How to uninstall Node-Red in Windows?
If for some reason you wanted to uninstall the Node-Red application in your workstation then follow the below steps.
First, stop all running Node-Red applications by pressing Ctrl+C on the command prompt.
Next, execute the below command.
npm uninstall -g node-red
How to upgrade Node-Red in Windows?
If you are running an old version of Node-Red and you want to upgrade to the latest version then execute the below command.
npm install -g --unsafe-perm node-red
Wrap Up
I have shown you how to install the Node-Red application in your Windows operating system in this post. You can now begin creating your next awesome Internet of Things (IoT) applications. We will use this setup in future projects.
I hope you learned something. Happy Exploring!
Leave a Reply