From 54b19cbcbb63f67fa3e7bb13f73f9bc6c4c19e64 Mon Sep 17 00:00:00 2001 From: Munif Tanjim Date: Sun, 20 Oct 2024 18:52:11 +0600 Subject: [PATCH] update setup-fnm --- setup-fnm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/setup-fnm b/setup-fnm index 4080ac1..9598764 100755 --- a/setup-fnm +++ b/setup-fnm @@ -17,3 +17,8 @@ if test -x "${install_dir}/fnm"; then ln -nsf "${install_dir}/fnm" "${bin_dir}/fnm" fi fi + +if ! fnm exec --using=default node -v >/dev/null 2>&1; then + fnm install --lts + fnm default "$(fnm list-remote --lts --latest | cut -d' ' -f1)" +fi -- knotmirror 0.0.1