File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 23
23
sed -i " $HOME /.npmrc" -e ' s/^prefix=.*$//'
24
24
fi
25
25
fi
26
- export NVM_DIR=" $HOME /.nvm"
26
+ export NVM_DIR=" $BASEDIR /.nvm"
27
+ mkdir -p " ${NVM_DIR} "
27
28
28
29
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
29
30
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ if [ "$OS" != "Windows_NT" ]; then
9
9
if which realpath; then # No realpath on macOS, but also not needed there
10
10
export HOME=" $( realpath " $HOME " ) " # Needed to de-confuse nvm when /home is a symlink
11
11
fi
12
- export NVM_DIR=" $HOME /.nvm"
12
+ export NVM_DIR=" $BASEDIR /.nvm"
13
13
echo " Setting NVM environment home: $NVM_DIR "
14
14
[ -s " $NVM_DIR /nvm.sh" ] && \. " $NVM_DIR /nvm.sh"
15
15
set +x # nvm is very verbose
You can’t perform that action at this time.
0 commit comments