Skip to content

Commit 54f727d

Browse files
authored
Merge pull request #4 from ralphstodomingo/install-order-fix
nvm command used before install
2 parents 5a72d75 + 5f79596 commit 54f727d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

install

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ apt-get install -y curl gnupg2
1616
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
1717
source ~/.bashrc
1818

19-
# Initial install of NodeJS (vrsion 20 is an LTS version)
20-
nvm install v20
21-
npm install -g npm@latest
22-
2319
# Install node version manager, globally
2420
mv ~/.nvm /opt/nvm
2521
chmod -R 755 /opt/nvm
@@ -28,6 +24,10 @@ export NVM_DIR="/opt/nvm"
2824
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
2925
export PATH="/opt/nvm:$PATH"
3026

27+
# Initial install of NodeJS (vrsion 20 is an LTS version)
28+
nvm install v20
29+
npm install -g npm@latest
30+
3131
# Install last three NodeJS LTS versions
3232
nvm install v16
3333
nvm install v18

0 commit comments

Comments
 (0)