# Install script vs nvm

**URL:** https://discourse.nodered.org/t/install-script-vs-nvm/97733
**Category:** General
**Tags:** installation
**Created:** [22 June 2025 05:14 UTC](https://discourse.nodered.org/t/install-script-vs-nvm/97733 "2025-06-22T05:14:37Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)
#### Post date: [22 June 2025 05:14 UTC](https://discourse.nodered.org/t/install-script-vs-nvm/97733/1 "2025-06-22T05:14:37Z")

</div>

If I install nodejs on a new linux debian machine - nodejs states that the official recommended way is to use nvm (among other options).

The node-red install script states that nvm is not supported, this sounds like a conflict ?  
How can i use the install script (i like to have nr as service options).

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [22 June 2025 07:55 UTC](https://discourse.nodered.org/t/install-script-vs-nvm/97733/2 "2025-06-22T07:55:21Z")

</div>

> [@bakman2](#):
>
> …(among other options).

Other options being they still support the non-nvm way. So the script still works. Just use the script.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [22 June 2025 12:26 UTC](https://discourse.nodered.org/t/install-script-vs-nvm/97733/3 "2025-06-22T12:26:45Z")

</div>

Is there a plan for what we are going to do from v22?

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [22 June 2025 14:04 UTC](https://discourse.nodered.org/t/install-script-vs-nvm/97733/4 "2025-06-22T14:04:15Z")

</div>

What about v22 ?

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [22 June 2025 15:08 UTC](https://discourse.nodered.org/t/install-script-vs-nvm/97733/5 "2025-06-22T15:08:15Z")

</div>

I thought that the official builds for debian were ceasing. When I looked recently 22 was not there. On my phone for the next few days so not so easy to check.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [22 June 2025 15:10 UTC](https://discourse.nodered.org/t/install-script-vs-nvm/97733/6 "2025-06-22T15:10:46Z")

</div>

Sorry, I meant 24 not there.

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [22 June 2025 17:02 UTC](https://discourse.nodered.org/t/install-script-vs-nvm/97733/7 "2025-06-22T17:02:51Z")

</div>

> [@Colin](#):
>
> I thought that the official builds for debian were ceasing

Node.js themselves have not built Debian installers for a long time. Those are built by Nodesource.

It looks like they have just changed the way they do things:

> - _ **Package Changes:** DEB and RPM packages are now available under the `nodistro` codename. We no longer package the installer coupled to specific versions. This means you can install Node.js on almost any distro that meets the minimum requirements._
> - **Installation Scripts:** Back by popular demand, the installation scripts have returned and are better than ever. See the installation instructions below for details on how to use them.

The reason most of us don't recommend using `nvm` or similar is that every time you change node.js version, you have to also install all the global packages that go with it. This is, at best, very confusing. To say that Node-RED doesn't _support_ nvm isn't really accurate, it absolutely works fine - as long as you remember to install Node-RED again when you change versions.

This is a very wasteful approach and even more confusing if you forget to remove old versions since this can tie up a LOT of storage unwittingly.

So unless you have a specific reason to want to run multiple Node.js versions on the same device, it generally seems simpler to avoid all the pitfalls.

You should note that the main driver for Node.js pushing nvm would seem to be following Python's similar approach in pushing the use of "environments" which does the same thing.

Nodesource absolutely supports node.js v24:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/f/5ffd87244b8c8931bfffa72b3010df8fed14c9b5.png)  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/a/3ab7df8ce9ff960734a21d16784a947255d854e8.png)

> <https://github.com/nodesource/distributions/blob/master/README.md>

---

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [22 June 2025 17:54 UTC](https://discourse.nodered.org/t/install-script-vs-nvm/97733/8 "2025-06-22T17:54:45Z")

</div>

The key (for me) being the line about “scripts are back by popular demand” so as you were I think

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [22 June 2025 17:59 UTC](https://discourse.nodered.org/t/install-script-vs-nvm/97733/9 "2025-06-22T17:59:08Z")

</div>

Thanks for clarifying that Julian.

---

<div class="post-metadata">

### Author: ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)
#### Post date: [22 June 2025 18:05 UTC](https://discourse.nodered.org/t/install-script-vs-nvm/97733/10 "2025-06-22T18:05:29Z")

</div>

nvm installs also only work for a single user on a given computer and ONLY when they have a login session.

While most linux machines are "single" user these days, rather than the shared multi user resources they used to be, it does make life more difficult

This means that without some extra messing about you can not use the nvm install of NodeJS to run Node-RED as a service.

And while it is a BAD idea to run Node-RED as root (unless you 110% know what you are doing and there are usually better ways) there can be times it's needed and NVM would mean having to install NodeJS twice, once for each user.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [20 September 2025 18:06 UTC](https://discourse.nodered.org/t/install-script-vs-nvm/97733/11 "2025-09-20T18:06:04Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
