Removed sudo from npm

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

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