Skip to content

Commit 3dc6b30

Browse files
authored
Update 10_nvm.bash
1 parent b646872 commit 3dc6b30

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

avaiable/10_nvm.bash

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1+
if [ -z "$NVM_V" ]; then
2+
export NVM_V=14.15.3
3+
fi
4+
15
export NVM_DIR="$HOME/.nvm"
26
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
37
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
4-
# nvm use 10.20.1
5-
nvm use 14.15.3
8+
9+
if [ ! -d "${HOME}/.nvm/versions/node/v${NVM_V}" ]; then
10+
nvm install ${NVM_V}
11+
fi
12+
13+
nvm use $NVM_V

0 commit comments

Comments
 (0)