nvm problem

This commit is contained in:
qo-op 2020-04-30 03:01:48 +02:00
parent c2766585d4
commit dfc62d2a24
1 changed files with 6 additions and 2 deletions

View File

@ -12,8 +12,12 @@ scuttlebutt() {
sudo apt-get install -y socat python3-dev libtool python3-setuptools autoconf automake
# Install nvm
[[ ! $(which nvm) ]] && curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash && source ~/.bashrc && nvm install --lts
if [[ ! $(which nvm) ]]; then
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash
source ~/.bashrc
export NVM_DIR="$HOME/.nvm"
nvm install --lts
fi
# Install ssb-server and config in ~/.ssb_astroport
[[ ! -d ~/.ssb_astroport ]] && mkdir -p ~/.ssb_astroport
cd ~/.ssb_astroport