From 614d0bb4d3797b3e0d57a1ad9a92d2b18b77e379 Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Mon, 14 Oct 2024 12:23:24 +0200 Subject: [PATCH] Removed sudo from npm --- bashrc | 2 +- update.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bashrc b/bashrc index 5cb40c2..68f2754 100644 --- a/bashrc +++ b/bashrc @@ -46,7 +46,7 @@ alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo # fi # fi -PATH="$HOME/.local/bin:$HOME/.cargo/bin:$PATH" +PATH="$HOME/.local/bin:$HOME/.cargo/bin:$HOME/.npm/bin:$PATH" alias lz="lazygit" alias vi="nvim" diff --git a/update.sh b/update.sh index 72b09dc..36e08a2 100755 --- a/update.sh +++ b/update.sh @@ -187,6 +187,7 @@ printf -- '\033[33m Installing node\n\033[37m' cd ~ curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash - sudo apt install -y nodejs +npm config set prefix "${HOME}/.npm" # Install ble.sh printf -- '\033[33m Installing ble.sh\n\033[37m' @@ -216,7 +217,7 @@ fi # Install neovim for node printf -- '\033[33m Installing neovim for node\n\033[37m' -sudo npm install -g neovim +npm install -g neovim if [ $DESKTOP == "yes" ]; then # Install flatpak