Removed sudo from npm

This commit is contained in:
Christoffer Martinsson 2024-10-14 12:23:24 +02:00
parent 0121039cb6
commit 614d0bb4d3
2 changed files with 3 additions and 2 deletions

2
bashrc
View File

@ -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"

View File

@ -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