Remove nvm install from start.sh (#4804)

* Remove nvm install from start.sh

* Make it red
This commit is contained in:
Cohee
2025-11-23 16:37:50 +02:00
committed by GitHub
parent 4b77cb8583
commit 1b5075a331
+1 -17
View File
@@ -5,23 +5,7 @@ cd "$(dirname "$0")"
if ! command -v npm &> /dev/null
then
read -p "npm is not installed. Do you want to install nodejs and npm? (y/n)" choice
case "$choice" in
y|Y )
echo "Installing nvm..."
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
source ~/.bashrc
nvm install --lts
nvm use --lts;;
n|N )
echo "Nodejs and npm will not be installed."
exit;;
* )
echo "Invalid option. Nodejs and npm will not be installed."
exit;;
esac
echo -e "\033[0;31mnpm could not be found in PATH. If the startup fails, please install Node.js from https://nodejs.org/\033[0m"
fi
echo "Installing Node Modules..."