skip to Main Content

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?

2

Answers


  1. Chosen as BEST ANSWER

    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.


  2. It seems that the nodemng utility was removed from Plesk Obsidian although it is not referenced in the documentation for Onyx either.

    Additionally, the nodejs extension does not offer functionality to install new NodeJS versions but only to manage the existing ones. Check the documentation for the supported arguments.

    Finally, in this question is mentioned that:

    The Node.js extension now automatically installs and updates supported LTS versions.

    So I guess we will have to wait until NodeJS v20 gains LTS status.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search