From 5f79596ee342aba009e2ac7519577f9e6a534d48 Mon Sep 17 00:00:00 2001 From: "Ralph Sto. Domingo" Date: Sun, 28 Jul 2024 22:56:31 +0800 Subject: [PATCH] nvm command used before install --- install | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install b/install index c6e7275..0d1e6ce 100755 --- a/install +++ b/install @@ -16,10 +16,6 @@ apt-get install -y curl gnupg2 curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash source ~/.bashrc -# Initial install of NodeJS (vrsion 20 is an LTS version) -nvm install v20 -npm install -g npm@latest - # Install node version manager, globally mv ~/.nvm /opt/nvm chmod -R 755 /opt/nvm @@ -28,6 +24,10 @@ export NVM_DIR="/opt/nvm" [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion export PATH="/opt/nvm:$PATH" +# Initial install of NodeJS (vrsion 20 is an LTS version) +nvm install v20 +npm install -g npm@latest + # Install last three NodeJS LTS versions nvm install v16 nvm install v18