• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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