Install Node.JS version

Support Wissensdatenbank

Du bist hier:
Print

Install Node.JS version

To install an additional Node.JS version, do the following:

 

Preparation

cd /root
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

 

Installation

12.22.1

nvm install 12.22.1
cp -R ~/.nvm/versions/node/v12.22.1/ /opt/plesk/node/
plesk sbin nodemng register /opt/plesk/node/v12.22.1/bin/node

14.17.0

nvm install 14.17.0
cp -R ~/.nvm/versions/node/v14.17.0/ /opt/plesk/node/
plesk sbin nodemng register /opt/plesk/node/v14.17.0/bin/node

15.14.0

nvm install 15.14.0
cp -R ~/.nvm/versions/node/v15.14.0/ /opt/plesk/node/
plesk sbin nodemng register /opt/plesk/node/v15.14.0/bin/node

16.2.0

nvm install 16.2.0
cp -R ~/.nvm/versions/node/v16.2.0/ /opt/plesk/node/
plesk sbin nodemng register /opt/plesk/node/v16.2.0/bin/node

 

after the installation, open Plesk and the Node.JS Manager and click on update!

 

 

War dieser Artikel hilfreich?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
Wie können wir diesen Artikel verbessern?
Please submit the reason for your vote so that we can improve the article.
Brauchst du Hilfe?
Related Post