From 44ee29aefcf3888d294242843f5ad7602702794b Mon Sep 17 00:00:00 2001 From: lachtan Date: Wed, 3 Jun 2026 15:56:57 +0200 Subject: [PATCH] instalace nvm --- install/nvm-npm.sh | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/install/nvm-npm.sh b/install/nvm-npm.sh index 3e11f68..59fee54 100755 --- a/install/nvm-npm.sh +++ b/install/nvm-npm.sh @@ -3,8 +3,13 @@ # https://github.com/nvm-sh/nvm set -E -o errexit -o nounset -o pipefail -set -x -curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash -nvm install node -nvm use node +if ! can_run nvm; then + curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash + source "$LWS/rc/nvm.sh" +fi + +if ! can_run node; then + nvm install node + nvm use node +fi