• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Question Cannot run other node version in ssh

OvODev

New Pleskian
Hello,
i wrote an nodejs script wich can be only used in a higher nodejs version.
On my pc the script works fine but not on my Ubuntu with Plesk.
When i run
Code:
node -v
it will display
Code:
v8.10.0
.
How can i switch to a newer version on my Plesk server ?

Best regards.
 
I assume that you already have a different node version installed, you should be able to locate them at "/opt/plesk/node/"

I wanted to use the Version "v14.16.1" so i added it like so:
echo "alias node='/opt/plesk/node/v14.16.1/bin/node'" >> ~/.bashrc
After relogging to ssh, "node -v" should show the new version.
 
Back
Top