Remove nvm install from start.sh (#4804) * Remove nvm install from start.sh * Make it red

1b5075a331715064e3dc6c0ed062d9b1d1094d6d

Cohee <18619528+Cohee1207@users.noreply.github.com>

Signed
1 files changed, +1 -17Showing whitespace changes
start.sh+1 -17
@@ -5,23 +5,7 @@ cd "$(dirname "$0")"
55
66if ! command -v npm &> /dev/null
77then
8- read -p "npm is not installed. Do you want to install nodejs and npm? (y/n)" choice
8+ 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"
9- case "$choice" in
10- y|Y )
11- echo "Installing nvm..."
12- export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
13- [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
14- curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash
15- source ~/.bashrc
16- nvm install --lts
17- nvm use --lts;;
18- n|N )
19- echo "Nodejs and npm will not be installed."
20- exit;;
21- * )
22- echo "Invalid option. Nodejs and npm will not be installed."
23- exit;;
24- esac
259fi
2610
2711echo "Installing Node Modules..."