[{"data":1,"prerenderedAt":446},["ShallowReactive",2],{"node-red-\u002Fnode-red\u002Fgetting-started\u002Fupdate-node-red":3},{"id":4,"title":5,"body":6,"description":438,"extension":439,"meta":440,"navigation":441,"path":442,"seo":443,"stem":444,"__hash__":445},"nodeRed\u002Fnode-red\u002Fgetting-started\u002Fupdate-node-red.md","How to Update Node-RED",{"type":7,"value":8,"toc":423},"minimark",[9,17,21,26,29,51,54,58,61,66,69,92,99,103,106,124,131,135,138,159,162,178,182,185,191,207,212,237,247,252,287,294,298,301,334,341,344,348,355,359,374,377,381,384,410,416,419],[10,11,13],"h1",{"id":12},"",[14,15],"binding",{"value":16},"meta.title",[18,19,20],"p",{},"Regular updates keep your Node-RED installation running smoothly with the latest features, improvements, and bug fixes. Each new release brings enhancements that expand what you can build and improve your development experience. Whether you installed Node-RED through npm, used the Raspberry Pi script, or are running it in Docker, this guide walks you through the update process step by step. We'll also cover how to check your version, update your installation, and handle updates in FlowFuse.",[22,23,25],"h2",{"id":24},"checking-your-current-version","Checking Your Current Version",[18,27,28],{},"Before updating, check which version you're currently running:",[30,31,35],"pre",{"className":32,"code":33,"language":34,"meta":12,"style":12},"language-bash shiki shiki-themes github-light github-dark","node-red --version\n","bash",[36,37,38],"code",{"__ignoreMap":12},[39,40,43,47],"span",{"class":41,"line":42},"line",1,[39,44,46],{"class":45},"sScJk","node-red",[39,48,50],{"class":49},"sj4cs"," --version\n",[18,52,53],{},"You can also check the version from the Node-RED editor by clicking the menu icon (three horizontal lines) in the top right corner and selecting \"About.\"",[22,55,57],{"id":56},"updating-node-red-installed-with-npm","Updating Node-RED Installed with npm",[18,59,60],{},"If you installed Node-RED globally using npm, updating is straightforward.",[62,63,65],"h3",{"id":64},"standard-update","Standard Update",[18,67,68],{},"Stop Node-RED if it's running, then update using npm:",[30,70,72],{"className":32,"code":71,"language":34,"meta":12,"style":12},"npm install -g --unsafe-perm node-red\n",[36,73,74],{"__ignoreMap":12},[39,75,76,79,83,86,89],{"class":41,"line":42},[39,77,78],{"class":45},"npm",[39,80,82],{"class":81},"sZZnC"," install",[39,84,85],{"class":49}," -g",[39,87,88],{"class":49}," --unsafe-perm",[39,90,91],{"class":81}," node-red\n",[18,93,94,95,98],{},"The ",[36,96,97],{},"--unsafe-perm"," flag is required on some systems, particularly Linux and macOS, to ensure proper permissions during installation.",[62,100,102],{"id":101},"updating-to-a-specific-version","Updating to a Specific Version",[18,104,105],{},"To install a specific version rather than the latest:",[30,107,109],{"className":32,"code":108,"language":34,"meta":12,"style":12},"npm install -g --unsafe-perm node-red@2.2.0\n",[36,110,111],{"__ignoreMap":12},[39,112,113,115,117,119,121],{"class":41,"line":42},[39,114,78],{"class":45},[39,116,82],{"class":81},[39,118,85],{"class":49},[39,120,88],{"class":49},[39,122,123],{"class":81}," node-red@2.2.0\n",[18,125,126,127,130],{},"Replace ",[36,128,129],{},"2.2.0"," with your desired version number.",[22,132,134],{"id":133},"updating-on-raspberry-pi","Updating on Raspberry Pi",[18,136,137],{},"If you used the recommended install script on Raspberry Pi, use the same script to update:",[30,139,141],{"className":32,"code":140,"language":34,"meta":12,"style":12},"bash \u003C(curl -sL https:\u002F\u002Fraw.githubusercontent.com\u002Fnode-red\u002Flinux-installers\u002Fmaster\u002Fdeb\u002Fupdate-nodejs-and-nodered)\n",[36,142,143],{"__ignoreMap":12},[39,144,145,147,150,153,156],{"class":41,"line":42},[39,146,34],{"class":45},[39,148,149],{"class":81}," \u003C(",[39,151,152],{"class":45},"curl",[39,154,155],{"class":49}," -sL",[39,157,158],{"class":81}," https:\u002F\u002Fraw.githubusercontent.com\u002Fnode-red\u002Flinux-installers\u002Fmaster\u002Fdeb\u002Fupdate-nodejs-and-nodered)\n",[18,160,161],{},"This script will:",[163,164,165,169,172,175],"ul",{},[166,167,168],"li",{},"Check if updates are available",[166,170,171],{},"Update Node-RED to the latest version",[166,173,174],{},"Update Node.js if needed",[166,176,177],{},"Preserve your existing flows and configuration",[22,179,181],{"id":180},"updating-docker-installations","Updating Docker Installations",[18,183,184],{},"For Docker installations, updating involves pulling the latest image and recreating your container.",[18,186,187],{},[188,189,190],"strong",{},"Step 1: Pull the Latest Image",[30,192,194],{"className":32,"code":193,"language":34,"meta":12,"style":12},"docker pull nodered\u002Fnode-red:latest\n",[36,195,196],{"__ignoreMap":12},[39,197,198,201,204],{"class":41,"line":42},[39,199,200],{"class":45},"docker",[39,202,203],{"class":81}," pull",[39,205,206],{"class":81}," nodered\u002Fnode-red:latest\n",[18,208,209],{},[188,210,211],{},"Step 2: Stop and Remove the Old Container",[30,213,215],{"className":32,"code":214,"language":34,"meta":12,"style":12},"docker stop mynodered\ndocker rm mynodered\n",[36,216,217,227],{"__ignoreMap":12},[39,218,219,221,224],{"class":41,"line":42},[39,220,200],{"class":45},[39,222,223],{"class":81}," stop",[39,225,226],{"class":81}," mynodered\n",[39,228,230,232,235],{"class":41,"line":229},2,[39,231,200],{"class":45},[39,233,234],{"class":81}," rm",[39,236,226],{"class":81},[18,238,126,239,242,243,246],{},[36,240,241],{},"mynodered"," with your actual container name. If you're not sure what your container is named, run ",[36,244,245],{},"docker ps -a"," to see a list of all your containers.",[18,248,249],{},[188,250,251],{},"Step 3: Start a New Container",[30,253,255],{"className":32,"code":254,"language":34,"meta":12,"style":12},"docker run -d --name mynodered -p 1880:1880 -v node_red_data:\u002Fdata nodered\u002Fnode-red:latest\n",[36,256,257],{"__ignoreMap":12},[39,258,259,261,264,267,270,273,276,279,282,285],{"class":41,"line":42},[39,260,200],{"class":45},[39,262,263],{"class":81}," run",[39,265,266],{"class":49}," -d",[39,268,269],{"class":49}," --name",[39,271,272],{"class":81}," mynodered",[39,274,275],{"class":49}," -p",[39,277,278],{"class":81}," 1880:1880",[39,280,281],{"class":49}," -v",[39,283,284],{"class":81}," node_red_data:\u002Fdata",[39,286,206],{"class":81},[18,288,289,290,293],{},"Make sure to use the same volume mapping (",[36,291,292],{},"-v",") to preserve your flows and settings.",[22,295,297],{"id":296},"updating-flowfuse-node-red-instance","Updating FlowFuse Node-RED Instance",[18,299,300],{},"Updating a FlowFuse-managed Node-RED instance is quick and straightforward:",[302,303,304,307,314,321,328],"ol",{},[166,305,306],{},"Navigate to your FlowFuse instance",[166,308,309,310,313],{},"Go to the ",[188,311,312],{},"Overview"," tab",[166,315,316,317,320],{},"In the ",[188,318,319],{},"Specs"," section, you'll see all details including your current Node-RED version",[166,322,323,324,327],{},"If an update is available, you'll see an ",[188,325,326],{},"Update"," button in the top right corner of the specs section",[166,329,330,331,333],{},"Click the ",[188,332,326],{}," button",[18,335,336],{},[337,338],"img",{"alt":339,"dataZoomable":12,"src":340},"FlowFuse Node-RED instance update interface","\u002Fnode-red-media\u002Fgetting-started\u002Fimages\u002Fnode-red-instance-update.png",[18,342,343],{},"You'll be redirected to the instance settings where you have two options:",[62,345,347],{"id":346},"update-to-latest-version","Update to Latest Version",[18,349,350,351,354],{},"Click ",[188,352,353],{},"Update Node-RED version"," to install the latest available version.",[62,356,358],{"id":357},"change-to-specific-version","Change to Specific Version",[302,360,361,366,369],{},[166,362,350,363],{},[188,364,365],{},"Change Node-RED version",[166,367,368],{},"Select your desired Node-RED version from the dropdown",[166,370,350,371,373],{},[188,372,365],{}," to apply",[18,375,376],{},"FlowFuse handles the update process automatically while preserving your flows and configuration.",[22,378,380],{"id":379},"scheduling-automatic-updates","Scheduling Automatic Updates",[18,382,383],{},"Instead of updating instances manually, you can schedule automatic updates in flowfuse:",[302,385,386,392,399],{},[166,387,388,389],{},"Go to ",[188,390,391],{},"Settings",[166,393,394,395,398],{},"Open the ",[188,396,397],{},"Maintenance"," section",[166,400,401,402],{},"Configure the update schedule by selecting:\n",[163,403,404,407],{},[166,405,406],{},"Days of the week",[166,408,409],{},"Preferred time ranges",[18,411,412],{},[337,413],{"alt":414,"dataZoomable":12,"src":415},"FlowFuse scheduled update configuration","\u002Fnode-red-media\u002Fgetting-started\u002Fimages\u002Fschedule-update.png",[18,417,418],{},"FlowFuse will then automatically update your Node-RED instances within the defined maintenance window, ensuring they stay up to date without manual intervention.",[420,421,422],"style",{},"html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}",{"title":12,"searchDepth":229,"depth":229,"links":424},[425,426,431,432,433,437],{"id":24,"depth":229,"text":25},{"id":56,"depth":229,"text":57,"children":427},[428,430],{"id":64,"depth":429,"text":65},3,{"id":101,"depth":429,"text":102},{"id":133,"depth":229,"text":134},{"id":180,"depth":229,"text":181},{"id":296,"depth":229,"text":297,"children":434},[435,436],{"id":346,"depth":429,"text":347},{"id":357,"depth":429,"text":358},{"id":379,"depth":229,"text":380},"Learn how to update Node-RED across different installation methods including npm, Raspberry Pi, Docker, and FlowFuse","md",{},true,"\u002Fnode-red\u002Fgetting-started\u002Fupdate-node-red",{"title":5,"description":438},"node-red\u002Fgetting-started\u002Fupdate-node-red","nCnApYIXrc7Gn8Z3RM75tOgaY6nbTmZakEkWeyeUlbE",1780070557347]