Question
What Node.js versions are available in Plesk and how to choose the version for a specific domain?
Answer
Node.js versions that are available for installation via Plesk Installer:
- Node.js 12
- Node.js 10
- Node.js 8
Note: The implementation of Node.js 14 is planned for Q3 2021. It can be manually installed and registered in Plesk using the following steps:
Manual installation of Node.js 14 in Plesk for Linux
-
Connect to the server via SSH.
-
Install NVM:
# curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
-
Restart the SSH connection.
-
Install Node.js version 14:
# nvm install 14
-
Copy the installed files to Plesk working directory:
# cp -R ~/.nvm/versions/node/v14.17.0/ /opt/plesk/node/
-
Register the installed version in Plesk:
# plesk sbin nodemng register /opt/plesk/node/v14.17.0/bin/node
-
Log in to Plesk and go to Extensions > Node.js.
-
Click Refresh:
To find out what Node.js versions are already installed on a Plesk server, connect to the server via SSH/RDP and run the command:
# plesk ext nodejs –versions
To find out which Node.js version is used by a domain application, connect to the server via SSH/RDP and run the command:
# plesk ext nodejs –get-version -domain example.com
Version can be selected from a drop-down menu under Domains > example.com > Node.js > by clicking a version: