---
title: "Changing the Node.js version"
canonical_url: "https://www.zone.lv/help/kb/changing-the-nodejs-version/"
post_type: "ht_kb"
published: "2024-04-19T07:33:12+00:00"
modified: "2025-12-01T09:47:40+00:00"
language: "en"
author: "Tanel"
taxonomies:
  ht_kb_category:
    - name: "Node.js"
      url: "https://www.zone.lv/help/kb-categories/nodejs-en/"
    - name: "Technical"
      url: "https://www.zone.lv/help/kb-categories/technical-en/"
  ht_kb_tag:
    - name: "nodejs"
      url: "https://www.zone.lv/help/kb-tags/nodejs-en/"
    - name: "SSH"
      url: "https://www.zone.lv/help/kb-tags/ssh/"
---

# Changing the Node.js version

ZoneOS platform servers default to the latest Node.js LTS (Long-term support) version. At the time of updating this article, it is version 24.11.1.

If you want to use another version of Node (older or newer), you will have to install the desired version on the virtual server itself.

In order to install, connect to the server via SSH. Learn more:

To install a specific version of Node, first install the Node version manager `<a href="https://github.com/nvm-sh/nvm" rel="noopener noreferrer" target="_blank"><strong>nvm</strong></a>` on the server.

To do this, enter the command:
`curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash`

 After installing **`nvm`**, you must disconnect from the server for a short time, then reconnect to the server. To disconnect, type **`exit`** at the command prompt or press Ctrl+D.

After reconnecting to the server, it is possible to use the `nvm` command.

You can check the version of Node.js currently running on the server with the command `node -v`

```
virtXXXXX:sn-69-51.tll07.zoneas.eu:~> node -v
v24.11.1
```

If you want to install the latest available version of Node.js on the server, enter:
`nvm install node`

To install a specific version of Node.js, enter a command in the form:
`nvm install 18.13.0`

```
virtXXXXX:sn-69-51.tll07.zoneas.eu:~> nvm install 18.13.0
Downloading and installing node v18.13.0...
Downloading https://nodejs.org/dist/v18.13.0/node-v18.13.0-linux-x64.tar.xz...
############################################################################################################### 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v18.13.0 (npm v8.19.3)
```

In case the application reverts to the old version of Node.js when restarting, the following commands should be used:
`nvm use v18.13.0`
`node -v > .nvmrc`

In order to see all possible Node.js versions, enter `nvm ls-remote`

When desired Node.js version is installed, but the application may not start, enter a command `pm2 update`
