From 9b74522e21a1fa085b37a60d45a640e2ec7be690 Mon Sep 17 00:00:00 2001 From: poka Date: Wed, 13 May 2020 23:27:29 +0200 Subject: [PATCH] check npm with node for nvm --- zen/tools/make_G1SSB_secret.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zen/tools/make_G1SSB_secret.sh b/zen/tools/make_G1SSB_secret.sh index b2d9fba..efdb463 100755 --- a/zen/tools/make_G1SSB_secret.sh +++ b/zen/tools/make_G1SSB_secret.sh @@ -96,7 +96,7 @@ fi if [[ ! $(which oasis) ]]; then echo "INSTALL...." # Install nvm - if [[ ! $(which node) ]]; then + if [[ ! $(which node) || ! $(which npm) ]]; then curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.2/install.sh | bash source ~/.bashrc export NVM_DIR="$HOME/.nvm"