From 6c6a2860edc1403a33e344011baff9f0112827b4 Mon Sep 17 00:00:00 2001 From: Tan Nguyen Date: Sat, 21 Dec 2024 22:14:17 +0700 Subject: [PATCH] fix: the npm dir config --- setup/functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/functions.sh b/setup/functions.sh index caedf21..f5da186 100644 --- a/setup/functions.sh +++ b/setup/functions.sh @@ -16,7 +16,7 @@ build_fe() { if ! command -v nvm &> /dev/null; then # shellcheck disable=SC2155 - export NVM_DIR="$([ -z "${XDG_CONFIG_BLOG-}" ] && printf %s "${BLOG}/.nvm" || printf %s "${XDG_CONFIG_BLOG}/nvm")" + export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" fi nvm use "$NODE_VERSION"