• 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
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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