From 42fd5a54a6fab4ba47cbcfca5be3f5672fa93800 Mon Sep 17 00:00:00 2001 From: Daniel Winzen Date: Thu, 24 Dec 2020 09:04:09 +0100 Subject: [PATCH] Move nvm, nodejs and yarn installation to install_binaries.sh --- README.md | 10 ---------- install_binaries.sh | 12 ++++++++++++ 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 6146cbf..5f8dd0f 100644 --- a/README.md +++ b/README.md @@ -39,16 +39,6 @@ echo "deb https://deb.torproject.org/torproject.org `lsb_release -cs` main" >> / apt-get update && apt-get upgrade ``` -Install nodejs + yarn -``` -curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash -export NVM_DIR="$HOME/.nvm" -[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm -[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion -nvm install node -npm i -g yarn -``` - Note that both, debian and the torproject have hidden service package archives, so you may want to edit /etc/apt/sources.list to load from those instead: ``` deb tor://vwakviie2ienjx6t.onion/debian `lsb_release -cs` main diff --git a/install_binaries.sh b/install_binaries.sh index f2d918b..4a580f2 100755 --- a/install_binaries.sh +++ b/install_binaries.sh @@ -6,6 +6,18 @@ curl -sSL https://github.com/composer/composer/releases/download/2.0.8/composer. chmod +x /usr/bin/composer composer self-update +# install nvm +curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash +export NVM_DIR="$HOME/.nvm" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm +[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion + +# install nodejs +nvm install node + +#install yarn +npm i -g yarn + # initial repository clones if [ ! -e libssh2 ]; then git clone https://github.com/libssh2/libssh2