|
|
@@ -22,13 +22,16 @@ git config --global credential.helper store |
|
|
|
|
|
|
|
# Install prerequisites |
|
|
|
#NODE JS 16.17.1 |
|
|
|
wget https://nodejs.org/dist/v16.17.1/node-v16.17.1-linux-x64.tar.xz |
|
|
|
tar -xf node-v16.17.1-linux-x64.tar.xz |
|
|
|
node-v20.8.0-linux-x64.tar.xz |
|
|
|
wget https://nodejs.org/dist/v20.8.0/node-v20.8.0-linux-x64.tar.xz |
|
|
|
tar -xf node-v20.8.0-linux-x64.tar.xz |
|
|
|
# Move the extracted folder to /usr/local/lib |
|
|
|
sudo mv node-v16.17.1-linux-x64 /usr/local/lib/ |
|
|
|
sudo mv node-v20.8.0-linux-x64 /usr/local/lib/ |
|
|
|
# Create a symbolic link to the node executable |
|
|
|
sudo ln -s /usr/local/lib/node-v16.17.1-linux-x64/bin/node /usr/local/bin/node |
|
|
|
sudo ln -s /usr/local/lib/node-v20.8.0-linux-x64/bin/node /usr/local/bin/node |
|
|
|
sudo ln -s /usr/local/lib/node-v20.8.0-linux-x64/bin/npm /usr/local/bin/npm |
|
|
|
node -v |
|
|
|
npm -v |
|
|
|
|
|
|
|
#NPM |
|
|
|
sudo yum install npm |