node.jsplesk

How to add/upgrade node.js on Plesk Obsidian


I have tried to update node.js in Plesk Obsidian. I can only find older tutorials that no longer work with Obsidian. The Plesk Support has also provided limited assistance. I was able to install node.js v20 via SSH and copy it to the directory opt/plesk/node/20

The instructions now say that I should execute the following command:

plesk sbin nodemng register /opt/plesk/node/20/bin/node

This is met with the following error message: Unknown Plesk command-line utility: "nodemng" However, another command plesk ext nodejs --install -version v20.0.0 would also result in an error message. Namely: The Node.js version "v20.0.0plesk" was not found.

I'm running out of ideas and I don't know what else I could do to upgrade node.js from 16.4 to v20. Do you have any suggestions?


Solution

  • I have now tried many suggestions, but until today, I have not been able to install Node.js v18 or 20. I have found an interesting article that explains why it is not possible.

    https://github.com/nodejs/node/issues/43246

    There, the following is being said:

    One good reason for dropping support for CentOS/RHEL 7 is glibc. CentOS 7 ships with glibc 2.17 but node's dependencies are moving to newer versions.

    Thatswhy newer versions of node are not supported until CentOs update GLIBC to 2.27. Ubuntu 18.04 ships with glibc 2.27.

    For now we have to wait until CentOs is updated or another workaround was found.

    I hope some others need this information as helpful, so they can stop searching here. I will update this answer if there is anything new.